jotai-form
jotai-form copied to clipboard
Types for `fieldErrors`, also maybe merge `fieldErrors` to root form `error`
Types for the fieldErrors
in atomWithFormControls
is missing types.
The fieldErrors
and error
split was made to be an easy way to differentiate but it seems like it's easy to forget that there's a fieldError concept even when there's types.
Might want to change the API to have the below instead.
const { form, fields } = errors