francistogram
francistogram11mo ago

Callbacks in Consecutive Mutations

I seem to be running into this issue https://tanstack.com/query/v4/docs/react/guides/mutations#consecutive-mutations using .useMutation and only the last callback is fired Is there any way around this with TRPC since I assume it's actually a wrapper around mutate instead of .useMutation?
Mutations | TanStack Query Docs
Unlike queries, mutations are typically used to create/update/delete data or perform server side-effects. For this purpose, TanStack Query exports a useMutation hook. Here's an example of a mutation that adds a new todo to the server:
No description
0 Replies
No replies yetBe the first to reply to this messageJoin