Replies: 1 comment
-
|
Hi!! @Khoa-BOB You’re hitting that error because useForm by default returns UseFormReturn, but you’re trying to assign it to UseFormReturn. The generic type parameter isn’t inferred unless you pass it explicitly. ✅ Fix const form = useForm({ Now form will be UseFormReturn automatically, so you don’t need the explicit type annotation: 👉 Just remove the manual annotation and call useForm(). That resolves the TS2322 error. |
Beta Was this translation helpful? Give feedback.
0 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 have the incompatible type issue when using the UseForm.
Beta Was this translation helpful? Give feedback.
All reactions