-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Interacting with list filters throws a React update component error #4572
Comments
Reproduced on |
OK, this is a bug in react-final-form (final-form/react-final-form#751) revealed by a recent react update (facebook/react#18178). There is nothing we can do in react-admin to fix this bug. |
It seems the upstream bug is fixed in react-final-form v6.4.0. Can you upgrade and report here how it affects your bug? |
@fzaninotto no longer able to reproduce with the upgrade to react-admin v3.3.3 (react-final-form v6.4.0). Thanks for the feedback, closing issue :) |
What you were expecting:
No error thrown in the console log.
What happened instead:
When a user interacts with the filter components on a List view, the following React error is thrown: "Warning: Cannot update a component from inside the function body of a different component."
Steps to reproduce:
Encountered the error in a custom app but it seems to be reproducible in the latest demo sandbox.
Open the console, error appears on the user applying a filter to the Posts list (e.g. Title) in the demo CodeSandbox example: https://codesandbox.io/s/github/marmelab/react-admin/tree/master/examples/simple
Environment
The text was updated successfully, but these errors were encountered: