I have configured a YUP validation schema with a test condition, which sends the value to the server, through fetch to validate that value.
You can imagine this as a typical scenario: someone enters a new username and the app checks that it does not already exist.
The difference is that it's a list of a few boxes (usually two or three) with domains which need to be validated by the server.
Each text box has the following YUP configuration:
fetch)I'd like to be able to not run 4 if 2 or 3 fail, but that's a different topic.
Even though each request is fairly quick, I'd like to display a feedback next to each text box being validated.
As far as I can see, unlike for touched and errors, there isn't a validating[value_name] prop in Formik or something similar.
Maybe I'm looking at the wrong place?
Duplicate of #126
@jaredpalmer This is not a duplicate. The isValidating prop discussed in #126 is for the whole form and you cannot tell the validation state of a single field by that. I vote for the validating[value_name].
Most helpful comment
@jaredpalmer This is not a duplicate. The
isValidatingprop discussed in #126 is for the whole form and you cannot tell the validation state of a single field by that. I vote for thevalidating[value_name].