Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix useListParams might navigate to an old pathname #7882

Merged
merged 2 commits into from
Jun 24, 2022

Conversation

djhi
Copy link
Collaborator

@djhi djhi commented Jun 23, 2022

Fixes #7874

@djhi djhi added the RFR Ready For Review label Jun 23, 2022
@djhi djhi added this to the 4.1.6 milestone Jun 23, 2022
@vercel vercel bot temporarily deployed to Preview – react-admin June 23, 2022 10:16 Inactive

const setSort = useCallback(
(sort: SortPayload) =>
changeParams({
type: SET_SORT,
payload: sort,
}),
requestSignature // eslint-disable-line react-hooks/exhaustive-deps
[...requestSignature, changeParams] // eslint-disable-line react-hooks/exhaustive-deps
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this means you can remove the eslint disable comment. Same below

@fzaninotto fzaninotto merged commit 17e942e into master Jun 24, 2022
@fzaninotto fzaninotto deleted the fix-use-list-params-dependencies branch June 24, 2022 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

adding a filter sometimes sets the wrong url
2 participants