feature request / bug report (could be either one depending on point of view...)
I'm using keepDirtyOnReinitialize because some initial values are loaded asynchronously while the user could have already started to fill in the form.
Once they submit it, I would like to reset the form to create a new entity (same page).
Calling form.reset() or form.initialize(initialValues) has no effect.
I think form.reset() should work wether keepDirtyOnReinitialize is set or not.
Otherwise maybe allow something like form.reset(true) or form.forceReset().
https://codesandbox.io/s/react-final-form-keepdirtyonreinitialize-reset-4hnn7
[email protected]
[email protected]
Chrome/macOS
@erikras sorry to bother you but could you please have a quick look at this?
@antoinerousseau this could help for now https://github.com/final-form/final-form/issues/151#issuecomment-425867172
@sharpar works like a charm, thanks!
Most helpful comment
@antoinerousseau this could help for now https://github.com/final-form/final-form/issues/151#issuecomment-425867172