If the record-level validation is async, it waits for async field-level validation. Is there a way around this?
Say there's a validation error on the email field. When I type in the username field, emails error will be undefined until username resolves. This causes all of the shown errors to flicker whenever typing in username.
This comes from using yup for record-level validation, and debouncing a field-level validation.
EDIT: Ah, schema.validateSync fixed the issue, turning record-level into synchronous. Still wondering, though?
If the record-level validation is async, it waits for async field-level validation. Is there a way around this?
Say there's a validation error on the
email
field. When I type in theusername
field,email
s error will beundefined
untilusername
resolves. This causes all of the shown errors to flicker whenever typing inusername
.This comes from using
yup
for record-level validation, and debouncing a field-level validation.EDIT: Ah,
schema.validateSync
fixed the issue, turning record-level into synchronous. Still wondering, though?