Async validation problems #11378
Unanswered
gergicsmilan
asked this question in
Q&A
Replies: 0 comments
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.
-
Hello,
I am trying to implement async validation (with the validate function), but I keep facing the same issue over and over again:
Screencast Link
Steps to reproduce the problem:
After the steps the form's isValid state will be true, and the errors object will be empty despite the fact that "first name" field is required.

I have tried to use AbortController (as mentioned here: #1688) to abort async validation if the field is dirty and valid, but it still overrides my sync validation results.
Other similar discussions: #1688, #9791, #9028, #9929
Does anyone have any suggestion how to solve this issue?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions