MCPcopy
hub / github.com/TanStack/query / setFocused

Method setFocused

packages/query-core/src/focusManager.ts:60–66  ·  view source on GitHub ↗
(focused?: boolean)

Source from the content-addressed store, hash-verified

58 }
59
60 setFocused(focused?: boolean): void {
61 const changed = this.#focused !== focused
62 if (changed) {
63 this.#focused = focused
64 this.onFocus()
65 }
66 }
67
68 onFocus(): void {
69 const isFocused = this.isFocused()

Callers 5

setEventListenerMethod · 0.95
onAppStateChangeFunction · 0.80

Calls 1

onFocusMethod · 0.95

Tested by

no test coverage detected