T
TanStack16mo ago
wise-white

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
fascinating-indigo
fascinating-indigo16mo ago
Show a typescript playground please
wise-white
wise-whiteOP16mo ago
look the attached file bro
fascinating-indigo
fascinating-indigo16mo ago
If you want me to look at it, convert it to a playground please

Did you find this page helpful?