jurassix / react-validation-mixin

Simple validation mixin (HoC) for React.
MIT License
283 stars 38 forks source link

Using async validation creates too many requests #77

Open Mottoweb opened 7 years ago

Mottoweb commented 7 years ago

Hi, i am using custom async validations for phone number and email. Using validatorjs strategy. If there is value in the field that has custom async rule, its going to validate on every field blur. I don't know if this is a mixin/strategy/library issue.

The behaviour is next. Enter async field value, blur -> validate call. Enter other non related field value, blur and async field make request again.

The question is, how can i reduce the validation for single field to be just once and on submit?