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

Method onSubscribe

packages/query-core/src/queriesObserver.ts:94–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92 }
93
94 protected override onSubscribe(): void {
95 if (this.listeners.size === 1) {
96 this.#observers.forEach((observer) => this.#subscribeTo(observer))
97 }
98 }
99
100 protected override onUnsubscribe(): void {
101 if (!this.listeners.size) {

Callers

nothing calls this directly

Calls 1

#subscribeToMethod · 0.95

Tested by

no test coverage detected