T
TanStack2y ago
exotic-emerald

TypeScript Error with useMutation in Tanstack Query for Updating Data

Hi everyone, I'm facing an issue with using useMutation in Tanstack Query to update a single row of data in my React application. The goal is to update patient data using a form and handle optimistic updates. However, I'm encountering a TypeScript error that I can't seem to resolve.
3 Replies
fair-rose
fair-rose2y ago
Show a typescript playground please
exotic-emerald
exotic-emeraldOP2y ago
look the attached file bro
fair-rose
fair-rose2y ago
If you want me to look at it, convert it to a playground please

Did you find this page helpful?