Skip to content

onMutate return context type is unknown. #6483

Closed Answered by Keith-Web3
Keith-Web3 asked this question in Q&A
Discussion options

You must be logged in to vote

I tried to do that now and it's inferring the type correctly. I read your article on using typescript with react query and found out it's the generics in my mutation that are causing the issue. I know now to let typescript infer the type unless absolutely necessary.

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Keith-Web3
Comment options

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

Comment options

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

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