Can I use tRPC useQuery inside getServerSideProps?

getServerSideProps is supposed to be async.

Since the useQuery calls are synchronous, I get a type error:
Async function 'getServerSideProps' has no 'await' expression.


My end goal is to have a SSR component who's props are fetched via tRPC.
Was this page helpful?