-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
Does not rerender when values changes #197
Comments
We are not using the values object to construct the query so even thought it changes the query does not change so getDerivedStateFromProps returns null? |
@Herdismaria I just made a branch called |
if this returns null, we'll get an error when doing Object.keys(null) in getDerivedStateFromProps
|
@Herdismaria Pushed a fix. |
I had the same problem as @Herdismaria and tried the suggested branch. I does contain one error but seems to work otherwise. The error:
|
@s-diez Pushed There is a test failure on this branch though, would need to be fixed before merging |
Any progress on this? |
@molcik Just waiting on somebody to test the static-fix branch and confirm it is fixed |
@molcik If you're having the same issue, can you test the branch? |
Published a fix as 6.1.2 - please test and let me know if it is still an issue and I can reopen. |
Tried using the new version but it's still not working.
GetDerivedStateFromProps returns null even though values object changes.
I think the we need to store forceStatic in the state.
when we store forcesStatic in the state it triggers a rerender if we omit it after first render on the client.
The same but without storing forceStatic in the state
The text was updated successfully, but these errors were encountered: