Open mschipperheyn opened 5 years ago
I have the same problem and I have set
initialValuesEqual={() => (true)}
until the bug gets fixed
I have the same issue. keepDirtyOnReinitialize isn't working. I've created a codesandbox to demo the problem. FieldArray Bug Demo Seems like a state change -> rerender is whats clearing the out the additional values.
Any update on this bug?
Also encountering a similar issue when using useState
in the same component in which the Form
is rendered. Moving useState
down into a child component fixes it for now.
Any updates on this. Would be great if this could work by default without having to use initialValuesEqual.
Same here, even initialValuesEqual workaround is not working.
Are you submitting a bug report or a feature request?
Bug report
What is the current behavior?
I have a form with the following characteristics: My initial values are as follows:
When I select an item in the Select component a
state
change occurs and the entire form resets withkeepDirtyOnReinitialize=false
or it keeps the changes withkeepDirtyOnReinitialize=true
but after adding a firstapi
, the secondstate
change causes theapi[0]
to be set toundefined
.What is the expected behavior?
It should not reset form state on a state change.
What's your environment?