T
TanStack4mo ago
generous-apricot

Subscribe to a query whose key contains a specific string?

Is there a way to subscribe to a query whose query key starts with a specific prefix? For instance, if one component triggers a query with the key ['users', 'filter', 'ranked', 's'], can another component subscribe to it using only ['users'], without knowing the full key?
2 Replies
like-gold
like-gold4mo ago
QueryCache | TanStack Query Docs
The QueryCache is the storage mechanism for TanStack Query. It stores all the data, meta information and state of queries it contains. Normally, you will not interact with the QueryCache directly and...
generous-apricot
generous-apricotOP4mo ago
Thank you

Did you find this page helpful?