How to determine if a field has actually been validated? (isDirty/isValid not sufficient with debounce) #1994
Unanswered
fermentfan
asked this question in
General
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.
-
Problem
I'm trying to show a validation success icon (✓) next to fields that have been validated successfully. The challenge is distinguishing between "validation passed" and "validation hasn't run yet."
With debounced async validation, isValid is true by default because there are no errors, not because validation actually passed. Combined with isDirty or isTouched, this still doesn't tell me whether the debounced validator has actually executed.
What I tried
Desired behavior
Something like a hasBeenValidated or isValidated flag that:
Questions
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions