🆕 New Features
- added
initialDirty
to the<Form />
component anduseForm()
function that sets thedirty
meta initial value for the fields specified. - added
initialTouched
to the<Form />
component anduseForm()
function that sets thetouched
meta initial value for the fields specified.
These additions were added as a follow up to initialErrors
in the last release because if you wanted to display errors when the field is touched, it wouldn't work well with initialErrors
or validateOnMount
as you need to set the touched
meta. While setTouched
already exists, this is more convenient.