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

Method onSubscribe

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

Source from the content-addressed store, hash-verified

32 }
33
34 protected onSubscribe(): void {
35 if (!this.#cleanup) {
36 this.setEventListener(this.#setup)
37 }
38 }
39
40 protected onUnsubscribe() {
41 if (!this.hasListeners()) {

Callers

nothing calls this directly

Calls 1

setEventListenerMethod · 0.95

Tested by

no test coverage detected