Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/query
/ onFocus
Method
onFocus
packages/query-core/src/queryCache.ts:341–347 ·
view source on GitHub ↗
@internal
()
Source
from the content-addressed store, hash-verified
339
340
/** @internal */
341
onFocus(): void {
342
notifyManager.batch(() => {
343
this.getAll().forEach((query) => {
344
query.onFocus()
345
})
346
})
347
}
348
349
/** @internal */
350
onOnline(): void {
Callers
nothing calls this directly
Calls
1
getAll
Method · 0.95
Tested by
no test coverage detected