useFormFields
should not return dispatchFields
#10733
tyteen4a03
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently,
useFormFields
can be used in one of two ways: It can either return fields via a selector, or return adispatchFields
function. You cannot make it return both at the same time via array destructuring.This muddles up the return value and the DX is suboptimal. I think
useFormFields
should stop returningdispatchFields
and instead force the use ofuseForm
oruseWatchForm
hooks.Beta Was this translation helpful? Give feedback.
All reactions