Why useFormState vs formState? #4699
-
Just upgraded to v7. Most of the issues/bugs I had with v6 related to My question now is why would one choose to use I'm clearly missing something here so I thought I'd ask. My entire usage of react-hook-forms is on single-screen, single-form, react-native screens with the Controller component. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The same applies to |
Beta Was this translation helpful? Give feedback.
-
If we are accessing |
Beta Was this translation helpful? Give feedback.
useFormState
is at the component level, doesn't trigger re-render at the root. I think we should make this clearer in the doc.The same applies to
watch
vsuseWatch
. it's better to use those hooks if you have a large and complex forms.