t
tRPC
t
tRPC
tRPC + getServerSideProps
Original message was deleted
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
A
Ahmed Elsakaan
ā¢
11/17/22, 9:38 AM
you need to use
https://trpc.io/docs/ssg-helpers
and make sure you have ssr set to false in the trpc configuration
SSG Helpers | tRPC
createProxySSGHelpers provides you a set of helper functions that you can use to prefetch queries on the server
.
T
trash
ā¢
11/17/22, 3:49 PM
I
ād recommend look at the docs for getserversideprops as well
.
this will block until all your data is ready
T
trash
ā¢
11/17/22, 3:50 PM
if you notice fetches happening still
(via network tab
) may need to tweak some setting for react query
_
_tweak^prone
I found a solution; for me, i could do this in getServerSideProps: ` const po...
T
trash
ā¢
11/17/22, 5:11 PM
to be clear i never said blocking was an issue
. not sure why you keep up with this condescending tone
. but glad you figured something out
_
_tweak^prone
No condescending tone was intended. I was merely looking for a solution which wo...
T
trash
ā¢
11/17/22, 5:25 PM
all good
, tones get lost over text
!