t
tRPC
A
tRPC
•
2mo ago
Ali Samadi
trpcClient
Is this way recommended or stable that we can save the trpcClient outside of the provider and access it easily
? Like image 2
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
Was this page helpful?
Yes
No
A
Ali Samadi
OP
•
11/2/25, 2:12 PM
What about storing the const trpc
= useTRPC
(
)
; in the top level of the app
. So I don
't need to call the hook everytime
.
N
Nick
•
11/2/25, 8:51 PM
Generally fine
, but I think if you
're doing SSR
/RSC there may be footguns there
. I
'm no expert in that area though