`keepDirtyOnReinitialize` does not reinitialize the values in form
See original GitHub issueI’ve got an issue with enableReinitialize
and keepDirtyOnReinitialize
.
I wanna change values of initialValues
property and keep them dirty
. The problem is that these new values would not replace the actual values in the form.
Interesting is that there is no problem when some new attributes in initialValues
appear. They would appear in the form too. The problem is only with replacing actual data.
When I set keepDirtyOnReinitialize
to false everything works fine, but the values are pristine
.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:9
- Comments:9
Top Results From Across the Web
`keepDirtyOnReinitialize` does not reinitialize the values in form
I've got an issue with enableReinitialize and keepDirtyOnReinitialize. I wanna change values of initialValues property and keep them dirty.
Read more >Redux form - enableReinitialize override previous data and ...
In order to solve this issue, I've tried to use "keepDirtyOnReinitialize" but nothing seems to change and I don't really know how to...
Read more >Reset values in React Final Form w/ keepDirtyOnReinitialize
If keepDirtyOnReinitialize is applied to your form, then form.reset() no longer able to remove field's value. The Solution.
Read more >`keepDirtyOnReinitialize` does not reinitialize the values in ...
I wanna change values of initialValues property and keep them dirty . The problem is that these new values would not replace the...
Read more >reduxForm(config:Object)
If the keepDirtyOnReinitialize option is also set, the form will retain the value of dirty fields when reinitializing. getFormState : Function [optional]. A ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same here. I am having the same issue? Have anyone else had this problem?
I think this has been fixed in 7.2.0 and onwards with the introduction of:
https://codesandbox.io/s/mzrv9r73py