Replies: 1 comment 1 reply
-
I'm having this same issue. All our custom form components return objects, not strings as values, and we want that to be fully typed in the form. It worked fine wrapping every component in a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone! is there any way to tell the user of a reusable component what type of value he is going to receive? like the reusable component sent an object instead of a primitive value like this:
I've already checked out the latest version which includes FieldPathByValue but it only shows an error about an expected type but not what type.
here is an example of what im talking about: https://codesandbox.io/s/react-hook-form-v7-ts-template-forked-7k78tl?file=/src/App.tsx
I'm not sure if this has been mentioned before I've found some threads on github related to
FieldArrays
anduseController
(which is what i'm using here) but not is not exactly what I'm asking ?Beta Was this translation helpful? Give feedback.
All reactions