PavidR 🐈🐈P
tRPC17mo ago
1 reply
PavidR 🐈🐈

Duplicated tRPC server-side calls

Hello,
I'm using the CT3App tRPC implementation, server-side, with createHydrationHelpers stuff from @trpc/react-query/rsc

I'm also using generateMetadata function from NextJS App Router.

But ... I thought there would be some cache involved, because now my backend is hit 2 times :

- 1 when generating metadatas
- 1 in the RSC that prefetch my data

Is there any way around this, please ?
Was this page helpful?