Jikyu
Jikyu2w ago

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 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.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?