You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I dispatch the ActionCreator initialize('myForm', { myField: 'Init Value' }). It will initialize all values as expected. But will also wipe all previous initial values and all values from the store within the form.
What is the expected behavior?
The expected behavior is fine, as it is useful in many use cases. The only thing I wish is a ActionCreator, which allows to initialize another field in a already registered form, e.g. initializeField(form, field, value, ...). This will just initialize one field at a time and keep other initial values.
Another thing what I can imagine is another option in the ActionCreator initialize to preserve older already initialized values, e.g.: keepValues or preserveValues.
What's your environment?
Redux-Form: v7.2.0
The text was updated successfully, but these errors were encountered:
Seconded, it would be great to be able to keep dirty fields when using initialize.
There is enableReinitialize and keepDirtyOnReinitialize as reduxForm config params, but from my attempts they (appear to) have no affect on the behaviour of initialize().
Feature Request
What is the current behavior?
When I dispatch the ActionCreator
initialize('myForm', { myField: 'Init Value' })
. It will initialize all values as expected. But will also wipe all previousinitial
values and allvalues
from the store within the form.What is the expected behavior?
The expected behavior is fine, as it is useful in many use cases. The only thing I wish is a ActionCreator, which allows to initialize another field in a already registered form, e.g.
initializeField(form, field, value, ...)
. This will just initialize one field at a time and keep otherinitial
values.Another thing what I can imagine is another option in the ActionCreator
initialize
to preserve older already initialized values, e.g.:keepValues
orpreserveValues
.What's your environment?
Redux-Form:
v7.2.0
The text was updated successfully, but these errors were encountered: