Haaxor1689
Haaxor168913mo ago

Report progress of mutation

I'm using tRPC in a electron app and am running a nodeWorker from main thread. Is there a way to report partial progress to useMutation in renderrer thread? I know I could use subscription but is this possible with mutation?
Solution:
mutations typically follow the request/response pattern. A subscription is probably required.
Jump to solution
4 Replies
Solution
SebasPtsch
SebasPtsch13mo ago
mutations typically follow the request/response pattern. A subscription is probably required.
Krishna
Krishna13mo ago
Server Sent Events are best for this without the overhead of sockets…
SebasPtsch
SebasPtsch13mo ago
Do they work with trpc though?
Krishna
Krishna13mo ago
I don’t think so… it’s in development as per one of the issues in repo

Did you find this page helpful?