t
tRPC
Does server side helper's fetch also fill the cache like prefetch? - tRPC
J
tRPC
•
15mo ago
Jikyu
Does server side helper's fetch also fill the cache like prefetch?
It wasn
't clear in the docs
(
https://trpc.io/docs/client/nextjs/server-side-helpers#helpers-usage
)
, but does
fetch
fetch
also add the query to the cache
, which I then dehydrate and send to the client
?
I need to access data both server side and client side
Server-Side Helpers | tRPC
The server
-side helpers provides you with a set of helper functions that you can use to prefetch queries on the server
. This is useful for SSG
, but also for SSR if you opt not to use ssr
: true
.
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
4,951
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
server side prefetch + optional client side refetch
P
Peform / ❓-help
13mo ago
Cache SSG helper response
S
snöw / ❓-help
4y ago
Can I cache a response server-side?
M
Mark L / ❓-help
4y ago
Recommended way to prefetch client-side
P
pbesh / ❓-help
4y ago