rescriptbr / reform

📋 Reasonably making forms sound good
https://rescript-reform.netlify.app/
MIT License
354 stars 41 forks source link

What is behavior of Startegy OnDemand validation #217

Closed enieber closed 2 years ago

enieber commented 2 years ago

In validationStrategy has 2 strategy

What is behaviour expected in OnDemand?

Because the OnChange has validate when change input.

vmarcosp commented 2 years ago

OnChange - triggered when happens any changes on the field. OnDemand - you have to trigger the validation manually by calling form.validateForm or form.validateFields.

vmarcosp commented 2 years ago

I'll close the issue since we answered the question. We're working on a new version of the documentation that will cover the details of the form strategy.