Callbacks in Consecutive Mutations
I seem to be running into this issue https://tanstack.com/query/v4/docs/react/guides/mutations#consecutive-mutations using
Is there any way around this with TRPC since I assume it's actually a wrapper around
.useMutation and only the last callback is firedIs there any way around this with TRPC since I assume it's actually a wrapper around
mutate instead of .useMutation?
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:
Here's an example of a mutation that adds a new todo to the server:
