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

Method getAll

packages/query-core/src/mutationCache.ts:259–261  ·  view source on GitHub ↗

* Returns all mutations within the cache. * * This is not typically needed for most applications, but can come in handy when needing more * information about a mutation in rare scenarios. * * @example * ```ts * const mutationCache = queryClient.getMutationCache() * * const

()

Source from the content-addressed store, hash-verified

257 * ```
258 */
259 getAll(): Array<Mutation> {
260 return Array.from(this.#mutations)
261 }
262
263 /**
264 * A slightly more advanced method that can be used to get an existing mutation instance from

Callers 3

findMethod · 0.95
findAllMethod · 0.95
resumePausedMutationsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected