Skip to content

mismatch between the expected function signature for the mutation and what is being provided #8210

Answered by TkDodo
OzanOcak asked this question in Q&A
Discussion options

You must be logged in to vote
  1. show a typescript playground!
  2. do not use generic type annotations, just write like you would with javascript and let the types infer:
- return useMutation<RegisterResponse, Error, RegisterFormInputs>(
+ return useMutation(

see:

Replies: 1 comment 1 reply

Comment options

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

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