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

Method findAll

packages/query-core/src/mutationCache.ts:308–310  ·  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

306 * ```
307 */
308 findAll(filters: MutationFilters = {}): Array<Mutation> {
309 return this.getAll().filter((mutation) => matchMutation(filters, mutation))
310 }
311
312 /** @internal */
313 notify(event: MutationCacheNotifyEvent) {

Callers

nothing calls this directly

Calls 2

getAllMethod · 0.95
matchMutationFunction · 0.90

Tested by

no test coverage detected