-
is there anything wrong here? because after I clicked the submit button, the value is still there and not cleared by formik const formik = useFormik({
initialValues: {
firstName: "",
lastName: "",
email: "",
password: "",
confirmPassword: "",
},
validationSchema: userRegisterSchema,
onSubmit(props, { resetForm }) {
console.info(props);
resetForm();
}
}); I've checked the value on the console log are already cleared, but the UI is not updated. |
Beta Was this translation helpful? Give feedback.
Answered by
rimzzlabs
Jul 12, 2022
Replies: 1 comment
-
turns out there is some typo on my code 😅 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rimzzlabs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
turns out there is some typo on my code 😅