-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Doesn't update my component (warning Using UNSAFE_componentWillReceiveProps) #2485
Comments
Posting the warning as a text so it is searchable:
|
Same here. |
@jacqueswho how is this a question this is a bug. |
Fixed in the v5 beta, see the 5.x migration guide |
This doesn't appear to be fixed for me (and several others in #1794 -- though perhaps that's a better ticket to track this) |
@nlarusstone are we will worried about the warning? Hopefully we will fix this in RJSF 6. OR are you trying to use react 18 in strict mode? |
Ah this is a good point -- I was using react 18 in dev (strict mode) which would explain this. I've just been ignoring the warning, but would be nice to have it fixed. If it takes until RJSF 6, that's ok -- thanks for the heads up! |
Prerequisites
Description
I am having a problem changing the schema in my implementation, I am trying to make a form with several pages, I created the schema variable based on React.UseEffect and when executing setSchema (method to update the state) my component does not render again, but if you change the variable, has anyone had this problem? also when running the application I get a warning (image attached)
Expected behavior
[What you expected to happen]
Actual behavior
[What actually happened]
Version
You can usually get this information in your
package.json
or in the file URL if you're using the unpkg one.The text was updated successfully, but these errors were encountered: