Getting global query loading state on client (react)
How to share the types correctly?
package.json
includes:
...Can I extend the procedure builder?
NextJS trpc caller and Hono
RBAC with tRPC
`useTRPC` has the any type meanwhile `AppRouter` doesn't
AppRouter
from the backend for types. AppRouter
appears to have types, but useTRPC
doesn't. How can I fix it?
Upgraded to v11.1.3 along with react-query peer dep v5.76.1 and getting internal type errors on
How to setup trpc with react router 7?
create middleware
Multiple .meta in one route
Upgrading from v10 to v11

SSR with Client Components
await headers()
and then passes it into a client component that then passes it into a context
- The TRPC client reads said headers
...public/protectedProcedure returns `any` in client usage
publicProcedure
or protectedProcedure
method on the client, the types on that procedure are any
instead of the types returned by t.procedure
....Mocking tRPC in Storybook
How to combine trpc with legend state?
gets a massive dataset
How to properly handle errors on the client
TRPCError
error in the procedure under certain conditions. On the client I query the procedure and check the error with isError
flag returned by hook.
The problem is it bubbles the error to the very top crashing entire application. How to stop it bubbling and make it catchable with isError
flag? The documentation is poor about handling errors on the client.
It's Next 15 with Turbopack and the "new" Tanstack React Query integration....Type inference issues after upgrading to Typescript 5+
.query
are inferred to any
instead of the actual type. I've tried a bunch of different things but can't seem to get it to work. I also couldn't find anything specifically related to this wrt. TS5.
I'm assuming the issue is that some compiler settings changed, and this is somehow breaking the import.
What's strange is that the AppRouter
imported from the referenced project seems to have the correct shape, but somehow calling a query
on the router instance still fails....
tRPC useQuery Promise Rejected Without Error — Hook Stuck in pending
Optimistic updates using tRPC 11 with TanStack React Query 5