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
Go to comment edit page, and check the console logs printed in dataProvider. The filter for ReferenceInput of Posts was changed after 2 seconds, still the latest query in dataProvider has old filter in params.
What you were expecting:
Changing the filter value in ReferenceInput should make query with new filters.
What happened instead:
Changing filters doesn't work, instead the query uses the same old filter value.
Steps to reproduce:
Change filter of ReferenceInput at runtime by setTimeOut or by another formInput value, and pass the new filter to ReferenceInput.
Related code:
https://codesandbox.io/s/cold-star-f2rfi
Go to comment edit page, and check the console logs printed in dataProvider. The filter for ReferenceInput of Posts was changed after 2 seconds, still the latest query in dataProvider has old filter in params.
Other information:
I have also raised a PR on my approach to solve this issue. Here is the link.
#4508
Environment
The text was updated successfully, but these errors were encountered: