jotai-form icon indicating copy to clipboard operation
jotai-form copied to clipboard

Types for `fieldErrors`, also maybe merge `fieldErrors` to root form `error`

Open barelyhuman opened this issue 2 months ago • 0 comments

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

barelyhuman avatar Apr 13 '24 12:04 barelyhuman