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

Method getMutationCache

packages/query-core/src/queryClient.ts:882–884  ·  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

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