tRPCttRPC
Powered by
ZachZ
tRPC•11mo ago•
3 replies
Zach

how can I set up trpc to work with nested providers?

Hi,
I have two separate clients with their own typings and HTTP links, and I wrap my application in nested providers—one for each client—with their own QueryClient instances.

However, regardless of which client I use, the runtime always sends the request to the URL specified in the innermost provider. The typings and client definitions appear correct, but at runtime both clients' queries are routed to the endpoint of the innermost provider.

Any help would be greatly appreciated!
Screenshot_2025-04-23_at_3.19.07_PM.png
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Can set cookie with trpc?
<DxD/><<DxD/> / ❓-help
3y ago
tRPC set up error
NilavaNNilava / ❓-help
3y ago
Next.js app router + TRPC...how to set it up?
nitestackNnitestack / ❓-help
3y ago
Nested tRPC procedures.
Deepak SharmaDDeepak Sharma / ❓-help
2y ago