Replies: 1 comment
-
I just encountered this and I had the same opinion. If I have a custom error that is based on my specified condition, I would think if the setError() is used on the useForm() objects then the form would not submit because there is an error. If you find an explanation or a better solution, please let me know |
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.
-
this is an example from the official documentation
https://codesandbox.io/p/sandbox/seterror-single-field-errors-79wcr9?file=%2Fsrc%2FApp.js
please explain why this code works?
in my opinion, if there is an error, the form should not be submitted. Correct me if I am wrong. or is there a way to do this using a library?
Beta Was this translation helpful? Give feedback.
All reactions