Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/TanStack/query
/ onFocus
Method
onFocus
packages/query-core/src/focusManager.ts:68–73 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
66
}
67
68
onFocus(): void {
69
const
isFocused = this.isFocused()
70
this.listeners.forEach((listener) => {
71
listener(isFocused)
72
})
73
}
74
75
isFocused(): boolean {
76
if
(typeof this.#focused ===
'boolean'
) {
Callers
2
setEventListener
Method · 0.95
setFocused
Method · 0.95
Calls
2
isFocused
Method · 0.95
listener
Function · 0.50
Tested by
no test coverage detected