Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
with trpc, how to invalidate query only when there's the query cached exist? - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
3y ago
•
2 replies
ibrahimyaacob
with trpc, how to invalidate query only when there's the query cached exist?
it seems like
utils.myRouter.myQuery.invalidate()
utils.myRouter.myQuery.invalidate()
, triggers the query
, even though
api.myRouter.myQuery.useQuery()
api.myRouter.myQuery.useQuery()
is not called from the page
. how do i prevent this
Theo's Typesafe Cult
Join
26,131
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
TRPC's useContext does not invalidate query.
TTC
Theo's Typesafe Cult / questions
3y ago
How to invalidate query made by trpc inside a RSC
TTC
Theo's Typesafe Cult / questions
2y ago
How to invalidate query in T3?
TTC
Theo's Typesafe Cult / questions
3y ago
How to invalidate trpc queries in Next13
TTC
Theo's Typesafe Cult / questions
3y ago