Skip to content

Commit

Permalink
Merge pull request #10371 from marmelab/Fix-set-state-warning
Browse files Browse the repository at this point in the history
Fix ReferenceManyField executes filter reset filter too often
  • Loading branch information
slax57 authored Nov 21, 2024
2 parents b03a514 + 7b319c4 commit 29f4cab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const useReferenceManyFieldController = <
filterRef.current = filter;
setFilterValues(filter);
}
});
}, [filter]);

const {
data,
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-core/src/controller/list/useList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export const useList = <RecordType extends RaRecord = any>(
filterRef.current = filter;
setFilterValues(filter);
}
});
}, [filter]);

// We do all the data processing (filtering, sorting, paginating) client-side
useEffect(
Expand Down

0 comments on commit 29f4cab

Please sign in to comment.