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

Method getMutationCache

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

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

()

Source from the content-addressed store, hash-verified

879 * ```
880 */
881 getMutationCache(): MutationCache {
882 return this.#mutationCache
883 }
884
885 /**
886 * 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 3

buildMutationFunction · 0.64
executeFunction · 0.64
executeMutationFunction · 0.64