SSR and Server-Side Helpers for App Router #5674
Unanswered
tomitrescak
asked this question in
Q&A
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using TRPC with app router. I like the way TRCP handles data updates on the clients, and I wouldn't say I like mutations in server-side components. Thus, I consciously decided to render all non-changeable data in the server component but fetch all the modifiable data using the client component and topic/react approach.
But, I really dislike the "Loading ..." interface and I want to have SSR. I am using the T3-Stack. The problem is that I could not figure out how to do SSR, as all the documentation points to the old app router.
There are https://trpc.io/docs/client/nextjs/server-side-helpers, but the docs only mention pages router, and no matter how I tried to bend it, the TRPC cache was not hydrated. The t3-stack from the app router also seems not to use the @trcp/next component anymore.
Beta Was this translation helpful? Give feedback.
All reactions