callProcedure unavailable in TRPC v11
Hi there,
TRPC released their v11 beta the other day and I am keen to upgrade (mostly for React Query bump to v5), however, they appear to have moved a load of stuff from
@trpc/server
into an internal package which is not supposed to be used externally. Of particular note is the callProcedure
method used in T3's RSC/server-side link.
This method would seem quite useful creating custom links in general, so I am unsure exactly why it has been "hidden". However, this leaves the app router version of the T3 stack a bit stuck! I appreciate it's early days, but I wonder if anyone has a reasonable workaround?2 Replies
Using callers directly appears to be the answer:
https://discord.com/channels/867764511159091230/1057652120473575505/1196369868333793320
Not sure how smart this is but what I've managed to do is use callTRPCProcedure instead of callProcedure. And for now I've forced