New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get only changed fields? #396
Comments
you can use deep-object-diff package to know which fields changed, |
I was also searching about how i could implement this. I post the solution that i used for any next visitor: You can use form.getState().initialValues and compare them with the first param of onSubmit which is values. |
@juicylevel I don't know what you mean with "dirtyFields do not fit", but for everyone else: |
"dirtyFields" doesnt work in multistep forms where each step mount and unmounts, "dirtyFields" resets/forgets step 1 dirtyFields when for example going from step 1 to step 2. |
feature request
Hello! I use FormSpy to handle form field changes. I need to know which fields have changed. How can i do this?
P.S. dirtyFields do not fit
The text was updated successfully, but these errors were encountered: