The current implementation leaves the atomWithValidate as is and atomic, thus making it reusable in other components when needed but still providing a way to combine multiple such atoms into a form and allowing both set and get on these with the original validation properties.
In addition to that,
a form atom level isValid,isDirty, errors is also added for handling overall states like button submissions
Extending #3
The current implementation leaves the
atomWithValidate
as is and atomic, thus making it reusable in other components when needed but still providing a way to combine multiple such atoms into a form and allowing both set and get on these with the original validation properties.In addition to that, a form atom level
isValid
,isDirty
,errors
is also added for handling overall states like button submissions