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?
mutations typically follow the request/response pattern. A subscription is probably required.
Jump to solution
mutations typically follow the request/response pattern. A subscription is probably required.
Server Sent Events are best for this without the overhead of sockets…
Do they work with trpc though?
I don’t think so… it’s in development as per one of the issues in repo

Looking for more? Join the community!

Recommended Posts
Discriminated output based on discrimiated inputI have this function which works correctly by itself, but when i put it on trpc, the output doesn't How to create a React Component that fetch API based on a router from props ?I want to pass in my React component props the name of the router to use, here is my current implemeHow to pass through authentication header when using createTRPCProxyClient and RSC?Hi - we are having a great time with tRPC, and have it working well in a Next14 + React Server CompoIntegrating tRPC with Clerk Authentication in an Existing Next.js "Turborepo" ProjectHello, I am currently working on a Next.js application within a Turborepo setup and am looking to inHelp understanding how to deploy tRPC in monorepo.Hi All, I read in the FAQ that most benefits come from using tRPC in a monorepo. So if i want to buibest way to delete trpc?I want to delete TRPC from a Nextjs project. What is the most appropiate way to take it out? ThanksQuery string paramsHi , new to tRPC, is there a way to send query string params with tRPC when making a request ?Error running dist/client/index.jsGot this error during node dist/client/index.js I have ran tsc -b also followed as same as in docsTRPC, Cookies, fetchI try to cakl my backend inside trpc procedures and I an using fetch for this. Is it possible so tha`The property 'query' in your router collides with a built-in method`I'm seeing an error (attached) where I can get autocompletes on TRPC in the file where the client isUsing trpc backend across multiple seperate front endsI want to create a nodejs backend with trpc to expose some api endpoints. This will then be called aHow can I Prefetch on client or server component on App router Nextjs?how can I pretch data on app router nextjsPage couldn't be rendered statically because it used `cookies`Has anyone had this issue? I'm using trpc in a server component and in localhost it works fine but iComparing tRPC and Server Actions for a SaaS Template: Seeking Insights and AdviceHey everyone 👋, I've just posted a detailed comparison and discussion request on Reddit about tRPC