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