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

Method findAll

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

* An even more advanced method that can be used to get existing mutation instances from the * cache that match the given filters. If no mutations match, an empty array is returned. * * This is not typically needed for most applications, but can come in handy when needing more * informati

(filters: MutationFilters = {})

Source from the content-addressed store, hash-verified

335 * ```
336 */
337 findAll(filters: MutationFilters = {}): Array<Mutation> {
338 return this.getAll().filter((mutation) => matchMutation(filters, mutation))
339 }
340
341 /**
342 * Notifies every cache listener of an event, in one batch.

Callers

nothing calls this directly

Calls 2

getAllMethod · 0.95
matchMutationFunction · 0.90

Tested by

no test coverage detected