Why do I have to add a type to setErrors? #2697
Unanswered
h0jeZvgoxFepBQ2C
asked this question in
General
Replies: 2 comments 2 replies
-
what if you have multiple errors associated with different types? |
Beta Was this translation helpful? Give feedback.
2 replies
-
I agree that the For example, if my submission fails completely--like the API is not even running--I set an overall "form" error like so:
|
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
Uh oh!
There was an error while loading. Please reload this page.
-
As the title says: Why do I have to add a type to
setErrors
?I never use any local javascript validation schema, but only do server side validations. Every time I use react-hook-form it bugs me that I have to add a type.
It would be much better to just say:
Change my mind :D
Beta Was this translation helpful? Give feedback.
All reactions