what handler do you use to seperate trpc queries from client?

What can I do to isolate trpc queries from the client? I want to create a cleaner logic, such as invalidating the relevant context or suppressing toast in cases such as onSuccess and onError after the mutate operation.
2 Replies
cje
cje10mo ago
You can build abstractions around it to some extent, but this logic fundamentally has to live on the client.
fotoflo
fotoflo10mo ago
not sure i understand... what have you tried?
Want results from more Discord servers?
Add your server