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

Method onSubscribe

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

Source from the content-addressed store, hash-verified

37 }
38
39 protected override onSubscribe(): void {
40 if (!this.#cleanup) {
41 this.setEventListener(this.#setup)
42 }
43 }
44
45 protected override onUnsubscribe() {
46 if (!this.hasListeners()) {

Callers

nothing calls this directly

Calls 1

setEventListenerMethod · 0.95

Tested by

no test coverage detected