question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`keepDirtyOnReinitialize` does not reinitialize the values in form

See original GitHub issue

I’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:open
  • Created 6 years ago
  • Reactions:9
  • Comments:9

github_iconTop GitHub Comments

3reactions
FacundoGFlorescommented, Mar 30, 2017

Same here. I am having the same issue? Have anyone else had this problem?

2reactions
sodenniscommented, Dec 28, 2018
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found