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

Method onFocus

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

* Calls Query#onFocus on every cached query, in one batch. * @internal

()

Source from the content-addressed store, hash-verified

372 * @internal
373 */
374 onFocus(): void {
375 notifyManager.batch(() => {
376 this.getAll().forEach((query) => {
377 query.onFocus()
378 })
379 })
380 }
381
382 /**
383 * Calls {@link Query#onOnline} on every cached query, in one batch.

Callers

nothing calls this directly

Calls 1

getAllMethod · 0.95

Tested by

no test coverage detected