Replies: 1 comment
-
I would avoid adding this directly to Formik.errors because Formik can revalidate your fields and possibly remove your API errors at any time. Instead I would :
You could set initialValues to the submitted values onSubmit and display API errors for a field when field.value === field.initialValue, or just display it until the next submit. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. How can I check specific field for server errors?
For example:
But how can I develop it with formik API?
What I mean: I want to call client validation and if it has not error, then validate this field in backend. After that I want to see backend error on my UI.
Beta Was this translation helpful? Give feedback.
All reactions