Chad MaycumberC
Convex Community3y ago
3 replies
Chad Maycumber

Cache invalidation

Is there any way to invalidate the cache akin to attaching a query key in react query?

Currently I have a a few queries that leverage auth to pull in the correct information, but if this variable (switching to organziation) changes on the frontend, then the queries do re-fire.

Would the recommended approach be passing the potential variable that changes in as an arg even if it's not used in querying the data?
Was this page helpful?