Replies: 1 comment 3 replies
-
remove the generic on the Controller. |
Beta Was this translation helpful? Give feedback.
3 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.
-
Describe the bug
The type of
field.value
(in therender
prop of a<Controller />
) seems to not respect whatname
was passed to the controller - the type instead includes types from other, sibling fields.To Reproduce
Steps to reproduce the behavior:
badType
variableCodesandbox link (Required)
https://codesandbox.io/s/lucid-franklin-qf0h8?file=/src/App.tsx
Expected behavior
The type of
field.value
depends on thename
passed to the<Controller />
Beta Was this translation helpful? Give feedback.
All reactions