diff --git a/src/hooks/useData.ts b/src/hooks/useData.ts index 1cf4d1d..86ac358 100644 --- a/src/hooks/useData.ts +++ b/src/hooks/useData.ts @@ -10,6 +10,7 @@ export interface FetchResponse { const useData = ( endpoint: string, requestConfig?: AxiosRequestConfig, + // eslint-disable-next-line @typescript-eslint/no-explicit-any deps?: any[] ) => { const [data, setData] = useState([]); @@ -43,6 +44,7 @@ const useData = ( controller.abort(); }; }, + // eslint-disable-next-line react-hooks/exhaustive-deps deps ? [...deps] : [] );