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

Method onFocus

packages/query-core/src/focusManager.ts:67–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65 }
66
67 onFocus(): void {
68 const isFocused = this.isFocused()
69 this.listeners.forEach((listener) => {
70 listener(isFocused)
71 })
72 }
73
74 isFocused(): boolean {
75 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