App Router & tRPC Server Cache
How do you handle caching server queries with tRPC? I refuse to believe there's no good & easy way to do that. What am I missing?
Client Components feel faster as it's easy to cache the response on client.
Server Components feel fast on first load but trigger queries on every render, making it feel slower.
Currently using:
* tRPC v11
* Next.js v15.3.0
* TanStack React Query v5.72
The questionsHow do you cache tRPC server responses w/Next App Router? that I could find was somehow from exactly 1 year ago and still hasn't been resolved.
Client Components feel faster as it's easy to cache the response on client.
Server Components feel fast on first load but trigger queries on every render, making it feel slower.
Currently using:
* tRPC v11
* Next.js v15.3.0
* TanStack React Query v5.72
The questionsHow do you cache tRPC server responses w/Next App Router? that I could find was somehow from exactly 1 year ago and still hasn't been resolved.
