Formik Props update #3730
Unanswered
tusharpari
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My form component look like below -
Let say, If we want to update formik initialValues/values inside Component
Can we update the initialValues/values like below.. I mean is it a good practice ?
Object.assign(formProps.initialValues, ...{ //some data })
Object.assign(formProps.values, { ... formProps.initialValues } )
Thanks
Beta Was this translation helpful? Give feedback.
All reactions