You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice that the error is undefined (which is not the expected output)
Expected behaviour
The error should not be undefined when the form is invalid with rules set for the useController
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
weihungchin
changed the title
issue: useController fieldState error object is always undefined
issue: error object from both formState and fieldState are always undefined with useController
Apr 28, 2024
I just noticed we can read from the fieldState that the controller returns. Though I'm wondering if that is also not working correctly based on the change you made to the title @weihungchin?
Version Number
7.29.0
Codesandbox/Expo snack
https://codesandbox.io/p/sandbox/usecontroller-own-state-forked-9v83s5?file=%2Fsrc%2FApp.tsx
Steps to reproduce
Expected behaviour
The error should not be undefined when the form is invalid with rules set for the useController
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: