MCPcopy
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

setEventListenerMethod · 0.95
setFocusedMethod · 0.95

Calls 2

isFocusedMethod · 0.95
listenerFunction · 0.50

Tested by

no test coverage detected