You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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