Skip to content

The useForm isnt allowing me to just give it a type it requires me to give all 11 arguments #1206

Closed Answered by Balastrong
SekSion asked this question in General
Discussion options

You must be logged in to vote

You shouldn't pass a generic there, use it this way:

const form = useForm({
  defaultValues: {
    name: '',
    alias: "",
  } as Partner,
});

more in the docs

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SekSion
Comment options

Answer selected by Balastrong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants