ZephZ
tRPC4y ago
15 replies
Zeph

Clearing Cache

How do I clear the queryCache for a particular query using the trpc context? If that's not possible, how can I do that using queryClient?
queryClient.getQueryCache().clear()

I've tried the above but it clears the entire cache. I just want to clear the cache of particular key.

Thank you!
Was this page helpful?