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
The warning for uncontrolled -> controlled inputs is confusing #17069
Comments
FWIW the full warning text is:
I agree that developers may be unfamiliar with the terms "controlled" and "uncontrolled" but that's why we link to the documentation explaining what those terms mean 😄 |
True, but I still think the lede of "you didn't give it a value, then you did" is pretty buried. This warning feels like it gets asked about more frequently than any other. |
fwiw, I can vouch that this comes up fairly often. I would suggest adding a sentence like "This is likely caused by |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution. |
definitely not stale - #17390 is in progress. |
#17070 as well |
Do you want to request a feature or report a bug?
Bug? Mild DX improvement.
What is the current behavior?
Creating an input with an undefined or null value, then later passing a string value, triggers a warning about controlled inputs.
It's my experience in Reactiflux that this warning is unclear to developers with less familiarity with React, or at least with the "controlled" and "uncontrolled" terms.
The text was updated successfully, but these errors were encountered: