Skip to content

Commit

Permalink
fix dependances on useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienMattiussi committed Jun 18, 2020
1 parent 997e232 commit 651ac52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ra-core/src/controller/useListController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ const useListController = <RecordType = Record>(
// query for a page that doesn't exist, set page to 1
queryModifiers.setPage(1);
}
}, [loading, query.page, ids, queryModifiers, realIds]);
}, [loading, query.page, realIds, queryModifiers]);

const currentSort = useMemo(
() => ({
Expand Down

0 comments on commit 651ac52

Please sign in to comment.