react-final-form
react-final-form copied to clipboard
Validate on touch or submit
I want to show validation errors only after when form is touched or submitted. What is the standard way to manage this?
Currently I have this condition to render fields validation error.
invalid && (field.touched || form.submitSuccess || form.submitError)
Is this correct or is there a better way? Formik has validateOnRender property for example.
Thanks
https://rusty-foal.github.io/derrick6/