t3-stack tRPC ssr

Hey, I'm having trouble understanding how ssr works with t3 stack config. If I do trpc request inside component it makes it ssr by default? Do i understand it correctly? I haven't seen anyone using getServerSideProps so i assume it does? Can I read somewhere more details about that?
3 Replies
Neto
Neto•2y ago
ssr means that you fetch data and render the page on the server, before sending to the client, only hydrating there too
Yiannis
Yiannis•2y ago
Christopher Ehrlich
YouTube
Advanced tRPC - Callers, functions, and gSSP
Repo for this video: https://github.com/c-ehrlich/you-dont-need-callers If you want to use schema in the frontend, they cannot be imported from the same file as things that run specifically in the backend. One solution would be to put them into a procedureName.schema.ts or similar file. tRPC: https://trpc.io/docs Create T3 App: https://crea...
Paweł
PawełOP•2y ago
Thx 🙂
Want results from more Discord servers?
Add your server