When I update a prop value after the form has been rendered already (e.g. someone updates a field value server side) then the value is not synced into the values - is this correct behaviour if so how do you suggest I achieve the desired functionality?
Cheers,
Ben
Have you tried enableReinitialize?
https://github.com/jaredpalmer/formik#enablereinitialize-boolean
I know this is closed, but enableReinitialize actually will reset ALL form values, which would require the context of the form to manage ALL the form fields that are initialized or none. is there any option to only reinitialize one value?
@latviancoder hallelujah
I agree with @kylemellander . enableReinitialize makes you lose all your touched inputs. This is horrible.
hey guys iam facing the same problem here . any update on this, enableReinitialize will reset all values
I have same issue ;) Any ideas?
Have any prop that don't allows reset all values when I use enableReinitialize?
Have you tried
enableReinitialize?https://github.com/jaredpalmer/formik#enablereinitialize-boolean
Link is broken
Here's a working one: https://jaredpalmer.com/formik/docs/api/withformik#enablereinitialize-boolean
Still this doesn't actually solve the issue
Above URL still didn't work for me... must be case-sensitive. This works for me: https://jaredpalmer.com/formik/docs/api/withFormik#enablereinitialize-boolean
Most helpful comment
hey guys iam facing the same problem here . any update on this, enableReinitialize will reset all values