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

Method getAll

packages/query-core/src/mutationCache.ts:286–288  ·  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. * @returns Every mutation in the cache. * @example * ```ts * const mutationCache = queryCli

()

Source from the content-addressed store, hash-verified

284 * ```
285 */
286 getAll(): Array<Mutation> {
287 return Array.from(this.#mutations)
288 }
289
290 /**
291 * A slightly more advanced method that can be used to get an existing mutation instance from

Callers 4

clearMethod · 0.95
findMethod · 0.95
findAllMethod · 0.95
resumePausedMutationsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected