PavidR
Make server side tRPC calls on an external tRPC server ?
Hello, there is a very valid discussion on github that has still not been discussed : https://github.com/trpc/trpc/discussions/5989
2 replies
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 ?2 replies
Correct tRPC implementation (NextJS AppDir)
Hello !
I'm a little bit lost on the tRPC examples, especially on "examples-next-app-dir"
When should I use this :
https://github.com/trpc/examples-next-app-dir/blob/main/src/trpc/server-http.ts
over this ?
https://github.com/trpc/examples-next-app-dir/blob/main/src/trpc/server-invoker.ts
and this ?
https://github.com/trpc/examples-next-app-dir/blob/main/src/trpc/rq-server.ts
55 replies