Closed rahulpeacock closed 1 year ago
kirimase also have a good implementation of trpc in rsc. And it is also being actively maintained.
kirimase also have a good implementation of trpc in rsc. And it is also being actively maintained.
Can you share any repo for reference
Could be this one?
create-t3-app will soon have the app router option, there is a beta there you can use for reference
create-t3-app will soon have the app router option, there is a beta there you can use for reference
Could you share a link to the example of TRPC usage inside RSC in create-t3-app?
create-t3-app will soon have the app router option, there is a beta there you can use for reference
Could you share a link to the example of TRPC usage inside RSC in create-t3-app?
@piotrkulpinski now create-t3-app supports app-router too. You can refer to that
Describe the feature you'd like to request
I would like to use tRPC inside React server components
Describe the solution you'd like to see
we can use the createCaller() function of the appRouter to use tRPC inside rsc without react-query
use the trpcs function inside the React server components
NOTE: I know we use the top level await for getting the session inside
client/trpc/server.ts
file but in doing so I am this errorusage inside
page.tsx
when using top level await for getting the session insideclient/trpc/server.ts
ERROR:
Additional information
I got inspired from the Youtube video of Jack Herrington, here is the link to the video