jotaijs / jotai-form

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

feat(DX): Add ability to pass an atom to form atom helpers #24

Open barelyhuman opened 8 months ago

barelyhuman commented 8 months ago

Right now the initial values in all form helpers take a primitive or object. Add in the ability to pass in an atom to them.

At first look this might be easy to do with an atomFactory but might want to be careful with the formControls helper as it creates a few derivations and that might have undefined side effects.