-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
I'm using a combination of client and server side validation
a validator object may look like this:
validator: (value) => {
return Validator
.value(value)
.required()
.custom(() => {
// my async validation
})
}
the problem is that the async validation happens in parallel with the required() validator, meaning that I"m sending API requests even though i know they will fail.
Instead I end up implementing all the validations, such as required and min length, within the custom.
an option to have request run in series would help
debounce: 500, cache: true, sequntial: false|true ...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels