Skip to content

useMutation - Type error: No overload matches this call. #6157

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

You must be logged in to vote

input is untyped. You need to add types to input of the mutationFn. Note that the error messages should get a lot better with v5 because there we don't have overloads anymore.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@weebao
Comment options

@weebao
Comment options

Answer selected by TkDodo
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