setValue without rerender #10885
Answered
by
Moshyfawn
edward1127
asked this question in
Q&A
-
I have a quite large form, some of the fields' values are set with
The shouldTouch and shouldDirty will trigger re-render. Is there any way I can avoid that? |
Beta Was this translation helpful? Give feedback.
Answered by
Moshyfawn
Sep 5, 2023
Replies: 1 comment 1 reply
-
You can't avoid a re-render if you have an active There's a |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
edward1127
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can't avoid a re-render if you have an active
formState
subscription in your components tree; otherwise you'd get a stale value.There's a
disabled
prop foruseFormState
you can utilize to toggle yourformState
subscription l