T
TanStack2y ago
rising-crimson

I have no idea why this is show as error in V5

Line 53. type any works
No description
2 Replies
fascinating-indigo
fascinating-indigo2y ago
line 18, newTodo needs a type!
fascinating-indigo
fascinating-indigo2y ago
Dominik 🔮 (@TkDodo) on X
🔮 Mutations tip: When working with them in TypeScript, always make sure that your mutationFn is well typed. Especially if you use an inline function, you get an error if you don't type the input. TypeScript infers the type from the mutationFn, not from what you pass to mutate!
From An unknown user
Twitter

Did you find this page helpful?