I am trying to reset all errors in the form.
I tried using setErrors and setStatus, none of these are working. Errors in Formik state is not getting cleared.
setErrors({errors: {}})
and
setStatus({ errors: {}});
None of the above worked.
resetForm() clears all errors, but the form values are also reset which I don't want. Any pointers to clear only the errors object?