You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Title filter is applied oni the Comments list (which is wrong, as comments have no title
Analysis
The setFilters called by <FilterForm> is debounced by default. This means that it changes the URL 300ms after the user applies a filter. But if the user has already moved to another page, the redirection happens on the wrong page.
Possible solutions
in useListController, keep track of calls to setFilters, and cancel them on unmount
in useListParams, only call navigate if the location maches the current resource
Environment
React-admin version: v3 and v4
Last version that did not exhibit the issue (if applicable): none, the bug has always been here
React version: 17
Browser: Chrome
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Analysis
The
setFilters
called by<FilterForm>
is debounced by default. This means that it changes the URL 300ms after the user applies a filter. But if the user has already moved to another page, the redirection happens on the wrong page.Possible solutions
useListController
, keep track of calls tosetFilters
, and cancel them on unmountuseListParams
, only callnavigate
if the location maches the current resourceEnvironment
The text was updated successfully, but these errors were encountered: