Kenzo
Explore posts from serversHow to cache trpc server request next.js app router
---
Hey Alex.
Let's simplify this.
I have a wiki with weapons in a DB. I Want to cache the query and revalidate it when I modify the weapons table for example.
Vercel fetch stale while revalidate would work perfectly.
But we are using trpc. Not fetch directly.
Having to modify the responseMeta is weird for this simple use case
24 replies
TTCTheo's Typesafe Cult
•Created by Kenzo on 7/9/2024 in #questions
How I can stop trpc to make calls when alt tabbing?
I remember it was a simple setting, so it was not constantly fetching trpc when user focus and unfocus the screen
4 replies