Replies: 1 comment 2 replies
-
You need to pass the generic parameter type to const ButtonToSetValue = ({ set }: { set: UseFormSetValue<FormValues> }) => {
return (
// ...
);
}; This doesn't have anything to do with resolvers V5, which only updated how generics are handled with See this 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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on understanding the changes on v5 of the resolvers. How am I able to do this in v5?
If v5 removes the types from useForm, what do I do to pass the type to another component?
Generic type 'UseFormSetValue' requires 1 type argument(s).ts(2314)
If I specify the type, doesn't that disregard the entire update to v5?
Beta Was this translation helpful? Give feedback.
All reactions