tRPCttRPC
Powered by
laurenceL
tRPC•12mo ago•
10 replies
laurence

TRPC not writing to QueryCache?

Hi all, I've been using TRPC in a production site for over a year now. I recently have made some additions to this site that required cache invalidations, but for whatever reason I couldn't get them working. Troubleshooting the reason led me to discover that it appears the querycache my trpc instance is using is just always empty. (Empty cache = nothing to invalidate?).

I built the app using T3 and when I migrated to app router I built a new T3 app and used it as a reference. I've been looking at the differences between a fresh T3 creation and my app and I just can't find anything that could be the culprit. I've tried saving the queryclient to the window and it looks fine except it’s got an empty cache.
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

When not to use tRPC?
WezterWWezter / ❓-help
4y ago
trpc not providing cookies
Answer OverflowAAnswer Overflow / ❓-help
9mo ago
TRPC Stream not working,
2035Builder22035Builder / ❓-help
2y ago
Not able to implement websockets with trpc
acronieAacronie / ❓-help
3y ago