LunaCrafts
LunaCraftsโ€ข2y ago

Multiple React providers

Good morning! Is there any workaround, how to use multiple trpc-client instances with react-query? I wanted to share react-client between multiple instances, and I ended up with trpc calls to last-provided trpc address.
3 Replies
LunaCrafts
LunaCraftsโ€ข2y ago
If not, is this scenario going to be supported anytime soon?
Alex / KATT ๐Ÿฑ
GitHub
Using multiple TRPC clients in the same app ยท Issue #2121 ยท trpc/tr...
Discussed in #1990 Originally posted by dodas June 14, 2022 I am trying to have multiple TRPCRouters on backend and separate TRPCClients to access them. Looking at the way react hooks / contexts ar...
LunaCrafts
LunaCraftsโ€ข2y ago
Thank you Alex!! ๐Ÿ™