Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Can I use tRPC useQuery inside getServerSideProps? - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
4y ago
•
4 replies
juanvilladev
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.
Async function 'getServerSideProps' has no 'await' expression.
My end goal is to have a SSR component who
's props are fetched via tRPC
.
Theo's Typesafe Cult
Join
26,564
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
trpc call inside getServerSideProps?
TTC
Theo's Typesafe Cult / questions
4y ago
getServerSideProps and useQuery
TTC
Theo's Typesafe Cult / questions
4y ago