Skip to content

Commit

Permalink
Fix eslint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
KavetiRohith committed Sep 11, 2023
1 parent 73a5625 commit f71f76a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hooks/useData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export interface FetchResponse<T> {
const useData = <T>(
endpoint: string,
requestConfig?: AxiosRequestConfig,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
deps?: any[]
) => {
const [data, setData] = useState<T[]>([]);
Expand Down Expand Up @@ -43,6 +44,7 @@ const useData = <T>(
controller.abort();
};
},
// eslint-disable-next-line react-hooks/exhaustive-deps
deps ? [...deps] : []
);

Expand Down

0 comments on commit f71f76a

Please sign in to comment.