Field error in Controller #4205
Unanswered
danielbattat
asked this question in
General
Replies: 1 comment 2 replies
-
can you share a codesandbox? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using
Controller
to render an input. How do I 'see' if there is an error on the field inside the render()? According to the API, there is aninvalid
prop, but when I use it I get an errorcannot read property invalid of undefined
I know I can get the error via the
errors
property, but this does not help as the render function is not called every time the error object updates.My code:
Beta Was this translation helpful? Give feedback.
All reactions