useFormContext modifies proxy state as though it is root when used from child component #10564
Replies: 3 comments 4 replies
-
Additional info: It looks like This causes the values to be updated to Using |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I'm not so sure this is a duplicate. This issue in #10512 is that In our case it is more specific that deconstructing The reason is because the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Version Number
7.45.0
Codesandbox/Expo snack
https://codesandbox.io/s/rhf-useformcontext-errors-wxnrv5?file=/src/App.tsx
Steps to reproduce
triggerInput
Expected behaviour
Form render count does not increase
What browsers are you seeing the problem on?
Edge
Relevant log output
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions