Ivo
TTCTheo's Typesafe Cult
•Created by ibrahimyaacob on 10/19/2023 in #questions
with trpc, how to invalidate query only when there's the query cached exist?
when you invalidate some query by default all places that uses this query will be refetched, this should be the expected behavior, right ? if you don't want to refetch, just avoid the .invalidate()
3 replies
TTCTheo's Typesafe Cult
•Created by gsemyong on 10/21/2023 in #questions
Caching and invalidation in t3-stack with app router and trpc
in your react application, after you call your mutation you can do something like:
9 replies