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

Method getMutationCache

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

* Returns the mutation cache this client is connected to. * * @example * ```ts * import { QueryClient } from '@tanstack/query-core' * * const queryClient = new QueryClient() * const mutationCache = queryClient.getMutationCache() * const mutations = mutationCache.findAll({ sta

()

Source from the content-addressed store, hash-verified

806 * ```
807 */
808 getMutationCache(): MutationCache {
809 return this.#mutationCache
810 }
811
812 /**
813 * Returns the default options that were set when creating the client, or via

Callers 15

subscribeMethod · 0.80
computeStateMethod · 0.80
subscribeMethod · 0.80
useMutationStateFunction · 0.80
ContentViewFunction · 0.80

Calls

no outgoing calls

Tested by 2

buildMutationFunction · 0.64
executeMutationFunction · 0.64