MCPcopy Create free account
hub / github.com/TanStack/query / getQueryCache

Method getQueryCache

packages/query-core/src/queryClient.ts:792–794  ·  view source on GitHub ↗

* Returns the query cache this client is connected to. * * @example * ```ts * import { QueryClient } from '@tanstack/query-core' * * const queryClient = new QueryClient() * const queryCache = queryClient.getQueryCache() * const queries = queryCache.findAll({ queryKey: ['posts

()

Source from the content-addressed store, hash-verified

790 * ```
791 */
792 getQueryCache(): QueryCache {
793 return this.#queryCache
794 }
795
796 /**
797 * Returns the mutation cache this client is connected to.

Callers 15

ExamplesFunction · 0.95
ExamplesFunction · 0.95
ExamplesFunction · 0.95
ExamplesFunction · 0.95
runFunction · 0.95
WithKnownParametersFunction · 0.80
WithKnownParametersFunction · 0.80
ExamplesFunction · 0.80
ExamplesFunction · 0.80
subscribeMethod · 0.80

Calls

no outgoing calls

Tested by 2

buildQueryFunction · 0.64
makeStateFunction · 0.64