testsubject1137
How do I use the rsc-rq-prefetch example with a protected procedure?
I have not tested to see how many/which calls tRPC is making, but my auth does work just fine. However, I don't know if it makes any difference, but mine is set up a little differently. Maybe this will help a little.
/server/api/trpc.ts
22 replies
How do I use the rsc-rq-prefetch example with a protected procedure?
My guess is this is related: https://github.com/trpc/trpc/pull/5810
22 replies
How do I use the rsc-rq-prefetch example with a protected procedure?
I think something changed between rc.403 and current RC versions. I switched from npm to pnpm today and it updated me to the latest RC and this broke. It started trying to run the client query on the server which caused my console to go nuts with a huge error output. Rolling back to 403 and it's working again.
22 replies