Typescript useMutation hook type definition error #1435
-
Hello everyone, Hope you are all doing well. I was just trying V3 of React Query. So far, I am loving it. Thank you for all the hard work. I am trying to pass data into mutate function. But for some reason Typescript warns me of incorrect types. Maybe I am missing something. I've tried to pass in an empty object and with data inside it. I still get the same error. Once again, thank you very much for your help. I have also attached screenshots for your reference. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Never mind. I just realized that I forgot to pass the types for variables. My bad :) |
Beta Was this translation helpful? Give feedback.
Never mind. I just realized that I forgot to pass the types for variables. My bad :)