jotaijs / jotai-form

Form atoms for Jotai
MIT License
135 stars 1 forks source link

Experimental: Form validation with multiple atoms #4

Closed barelyhuman closed 2 years ago

barelyhuman commented 2 years ago

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