Kenzo
Kenzo
TtRPC
Created by P.S.Nikhil on 12/15/2023 in #❓-help
How to cache trpc server request next.js app router
Also afaik. You can modify trpc Fetch for client calls not backend
24 replies
TtRPC
Created by P.S.Nikhil on 12/15/2023 in #❓-help
How 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
TtRPC
Created by P.S.Nikhil on 12/15/2023 in #❓-help
How to cache trpc server request next.js app router
-- At the end, I just wanted to have my beloved stale while revalidate in TRPC easily
24 replies
TtRPC
Created by P.S.Nikhil on 12/15/2023 in #❓-help
How to cache trpc server request next.js app router
with unstable_cache I totally avoid having to fight against next modifying headers
24 replies
TtRPC
Created by P.S.Nikhil on 12/15/2023 in #❓-help
How to cache trpc server request next.js app router
Also, I was reading you could modify the headers of your trpc frontend calls, but not your backend ones right? or it applies to both?
24 replies
TtRPC
Created by P.S.Nikhil on 12/15/2023 in #❓-help
How to cache trpc server request next.js app router
hmm yeah, but I ended up using a more straigh foward way, in other discord as Julius mentioned, react cache + next unstable_cache
24 replies
TtRPC
Created by P.S.Nikhil on 12/15/2023 in #❓-help
How to cache trpc server request next.js app router
damn I should try that
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
TtRPC
Created by P.S.Nikhil on 12/15/2023 in #❓-help
How to cache trpc server request next.js app router
anyway, Julius said (in other discord) that a good alternative if I need to force cache is use unstable cache
24 replies
TtRPC
Created by P.S.Nikhil on 12/15/2023 in #❓-help
How to cache trpc server request next.js app router
yeah but i did not found any way to modify fetch headers of TRPC
24 replies
TTCTheo's Typesafe Cult
Created by Kenzo on 7/8/2024 in #questions
Caching does not work with trpc in Next, what would you do?
Ah okay, so for now I'll use unstable cache, ty!
26 replies
TTCTheo's Typesafe Cult
Created by Kenzo on 7/8/2024 in #questions
Caching does not work with trpc in Next, what would you do?
That's what I wanted to say XD
26 replies
TTCTheo's Typesafe Cult
Created by Kenzo on 7/8/2024 in #questions
Caching does not work with trpc in Next, what would you do?
We cannot change trpc Fetch headers, that's what I meant, so we can't use next fetch things like stale while revalidate
26 replies
TTCTheo's Typesafe Cult
Created by Kenzo on 7/8/2024 in #questions
Caching does not work with trpc in Next, what would you do?
Yep I see. Next changes too much
26 replies
TTCTheo's Typesafe Cult
Created by Kenzo on 7/8/2024 in #questions
Caching does not work with trpc in Next, what would you do?
True,caching methods are outdated in trpc.. But I saw you are tweaking trpc Fetch. Do you think stale while revalidate will work properly ?
26 replies
TTCTheo's Typesafe Cult
Created by Kenzo on 7/8/2024 in #questions
Caching does not work with trpc in Next, what would you do?
I love trpc, But it may need an update on their docs
26 replies
TTCTheo's Typesafe Cult
Created by Kenzo on 7/8/2024 in #questions
Caching does not work with trpc in Next, what would you do?
Oh I really appreciate it Julius 🫡 Got no answers in trpc discord, and saw nothing on their docs
26 replies
TTCTheo's Typesafe Cult
Created by Kenzo on 7/8/2024 in #questions
Caching does not work with trpc in Next, what would you do?
Hi? any idea?
26 replies
TTCTheo's Typesafe Cult
Created by Kenzo on 7/8/2024 in #questions
Caching does not work with trpc in Next, what would you do?
@julius I don't like to @ ppl but I saw your a maitainer of trpc. Does next version of trpc fix it?
26 replies
TtRPC
Created by P.S.Nikhil on 12/15/2023 in #❓-help
How to cache trpc server request next.js app router
so, there is no way to Next caches trpc calls?
24 replies