t
tRPC
t
tRPC
How we can invalidate mutation data
Original message was deleted
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
S
sourav
While converting useQuery to useMutation how are we going to invalidate the muta...
W
wleistra
•
2/22/23, 7:45 PM
Mutations come with a callback to execute the mutation
. To invalidate and refetch the data returned on the mutation
, you will need to call the mutation callback again on the on Success callback of the other query or mutation
. As far as I know
.
.
.