TanStackT
TanStack2y ago
4 replies
endless-jade

Does partial matching apply to query keys?

For invalidateQueries, do query keys just need to meet the subset of query keys or must it be exact.
For example, if i have two queries that have the following queryKeys: ['hello'] and ['hello', 'world'] would invalidating ['hello'] invalidate both of the queries? I assume not since queryKeys are hashed at some point?
Was this page helpful?