Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
3 replies
meeepsss

tRPC with ssr: true - what's going on?

I've looked far and wide, and haven't figured this out.

ssr: true uses getInitialProps, instead of getServersideProps, which can result in faster page loads since we're not waiting on the server. However, getServersideProps is now the recommended solution.

putting ssr: false feels wrong as it seems like this means I won't get ssr. I imagine this is wrong? Is the ssr that trpc is referring to different from the ssr we do want as described in the next js docs?
Was this page helpful?