Hello
I'm trying to reset the dirty property after my form is submitted.
I'm using it to know if users made changes in the form and alert them when they want to leave the page.
First question : is it the good property tu use for that ?
If yes, how could I reset the boolean to false, once the form is submitted ?
Something like resetForm({ values: currentValues }) (where currentValues is the values that are now not "dirty") should work, that will set the initial values and compute the dirty property to false
documented in https://github.com/formium/formik/pull/2743
Most helpful comment
Something like
resetForm({ values: currentValues })(where currentValues is the values that are now not "dirty") should work, that will set the initial values and compute the dirty property to false