Component not reflecting state in store
See original GitHub issueAre you submitting a bug report or a feature request?
Bug Report
What is the current behavior?
I created a very simple yes / no component mapped to true / false values. When clicking “No” the value is updated in the store, but the component does not update. Only after clicking Yes first the component updates when clicking No.
What is the expected behavior?
The component should reflect the store in the state.
Sandbox Link
https://codesandbox.io/s/r06VKjB4K
What’s your environment?
redux-form 6.8 redux 3.6 react-redux 5.0.4
Other information
I apologize if this is not a bug, but this seems extremely counter intuitive for users trying to build custom components. My hunch feeling says this is a bug because somewhere the state isn’t being strictly compared.
Update:
Adding a formatter or a parser that does nothing ( format={value=>value}
) has a side effect of fixing the problem. This amplifies my feeling that this is in fact a bug.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:8 (5 by maintainers)
Top GitHub Comments
Here’s the bug.
I’m trying to figure out why this was written like this.
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.