lint warnings

This commit is contained in:
Carlos Mesquita
2024-09-07 22:42:22 +01:00
parent 6e4ef249b8
commit b4ab620c78
3 changed files with 3 additions and 1 deletions

View File

@@ -34,7 +34,7 @@ export default function useUsers(props?: {type?: string; page?: number; size?: n
})
.finally(() => setIsLoading(false));
};
// eslint-disable-next-line react-hooks/exhaustive-deps
useEffect(getData, [props?.page, props?.size, props?.type, props?.orderBy, props?.direction]);
return {users, total, isLoading, isError, reload: getData};