-
Try the click https://codesandbox.io/s/react-hook-form-ggrgsk?file=/src/App.js |
Beta Was this translation helpful? Give feedback.
Answered by
leapful
Jul 3, 2023
Replies: 1 comment
-
Object If you want to get Working demo: https://codesandbox.io/s/react-hook-form-forked-qz6rkg?file=/src/App.js |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Cow258
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Cow258
Object
errors
will not change its reference viasetErrors()
method as it's a root error object and will be accessed viaformState
proxy.If you want to get
errors
from memorized component, just useuseFormState
instead.Working demo: https://codesandbox.io/s/react-hook-form-forked-qz6rkg?file=/src/App.js