-
-
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
Warning: Cannot update a component (XXX) while rendering a different component #4665
Comments
This seems to be linked to final-form/react-final-form#751 and should be fixed in the current version of react-final-form. |
I have this issue whenever i put my validation on a input within a referenceinput. |
Duplicate of #4572. If you upgrade your react-final-form version, make sure it's properly resolved and unique in your yarnb.lock. |
Here is my yarn.lock
I still have the same problem. |
On |
What you were expecting:
No warning.
What happened instead:
A state change in a
TextField
provokes a console warning (see at the bottom of the post.)Steps to reproduce:
For some unknown reason, the warning does NOT appear on codesandbox:
https://codesandbox.io/s/cool-curie-szq97
However if you do File > Export to ZIP and then execute the same code on your local browser, you (hopefully) get the warning.
Execute on your local browser.
Go to the
Create
Page.Open your console.
Write a letter inside the
Language
input.A warning should appear.
This may be something with the validation:
If this attribute is removed from the
TextInput
, then the warning does not appear...Really strange..
Environment
The text was updated successfully, but these errors were encountered: