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
Form component does not update when form data changes #906
Comments
I haven't found a solution yet, but this seems related to https://github.com/erikras/redux-form/blob/v6/src/reduxForm.js#L87 and more specifically the whitelist of props which are considered when updating: https://github.com/erikras/redux-form/blob/v6/src/reduxForm.js#L17-L27 |
I just instrumented the build of Here's my explanation of what goes wrong:
I'm honestly not sure what the solution should be, because I don't think I understand the rationale for a whitelist of props such as I would love to contribute a PR that fixes this issue, however when I try to clone, npm-link and use the cloned version of the repository (even after running
|
It appears that the last error I cited is because I'm using React 0.13 while redux-form v6 uses React 15. I'll see if there's a way to work around that. |
Thanks for documenting your progress here. It might be very helpful to others. And you might rubber duck your way into a solution.
|
Hey Erik, I'm really happy to hear that, I have a feeling that'll fix my exact issue! You're doing some incredible work here, keep it up!
|
Fix published as |
I'm closing this since Erik landed a fix in the latest release. |
for the older versions like, 5.3.3, even on using the formActions.change(), the value doesn't seem to change when I check it using console.log. However the redux state is updated in the hot-loader. Any reason why the conflict? |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
First of all thanks for all the good work on this library. I started using it for the first time today, and I'm using version 6, and it seems quite straightforward so far.
I'm building a form where certain values will influence what parts of the form get displayed (some checkboxes will show/hide certain sections). The way I found to solve this is to connect my form to the store and use the value of the fields to show/hide things in the form.
In the code sample you see below (which admittedly involves no checkboxes but seems to have the same issue), you will see the word "rerender" shown in the console only once, after you type in your first character in the text field, and never again afterwards.
Being new to this library, I know that I might be doing something wrong. If that's the case, would you be able to point me to the correct way of solving this?
If this indeed happens to be a bug, please let me know as I could also try to help troubleshoot the potential issue in redux-form.
The text was updated successfully, but these errors were encountered: