-
I'm really confused.
The following is available in the context:
Why does scenario 2 below rerender all the time? In scenario 1, I'm using The simple solution is of course to use
Scenario 1:
Scenario 2:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Whenever you're subscribed to root level state like
You don't always want to wrap fields in a component to access some nested field's value at top form level. Example CSB |
Beta Was this translation helpful? Give feedback.
Whenever you're subscribed to root level state like
formState
, form values (watch
)You can always consider hooks alternatives like
useFormState
, useWatch.You don't always want to wrap fields in a component to access some nested field's value at top form level.
Example CSB
You can switch on component render highlights in devtools for convenience