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

Method findAll

packages/query-core/src/queryCache.ts:324–329  ·  view source on GitHub ↗

* An even more advanced method that can be used to get existing query instances from the cache * that partially match a query key. If no queries match, an empty array is returned. * * This is not typically needed for most applications, but can come in handy when needing more * informatio

(filters: QueryFilters<any> = {})

Source from the content-addressed store, hash-verified

322 * ```
323 */
324 findAll(filters: QueryFilters<any> = {}): Array<Query> {
325 const queries = this.getAll()
326 return Object.keys(filters).length > 0
327 ? queries.filter((query) => matchQuery(filters, query))
328 : queries
329 }
330
331 /** @internal */
332 notify(event: QueryCacheNotifyEvent): void {

Callers 15

ExamplesFunction · 0.95
ExamplesFunction · 0.95
ExamplesFunction · 0.95
ExamplesFunction · 0.95
WithKnownParametersFunction · 0.45
WithKnownParametersFunction · 0.45
ExamplesFunction · 0.45
ExamplesFunction · 0.45
isFetchingMethod · 0.45
isMutatingMethod · 0.45
getQueriesDataMethod · 0.45
setQueriesDataMethod · 0.45

Calls 2

getAllMethod · 0.95
matchQueryFunction · 0.90

Tested by

no test coverage detected