Is there a way to async await a mutation instead of passing a callback to onSuccess?

Basically I would like to do:
let m = trpc.useMutation(["example.testing"]);
let result = await m.mutate({something: "example"});
let m = trpc.useMutation(["example.testing"]);
let result = await m.mutate({something: "example"});
Is this possible?
2 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Liam
Liam3y ago
Awesome, thanks! I had been typing ayncMutate() which had made it so intellisense was not finding the method lmao
Want results from more Discord servers?
Add your server