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

Method onSubscribe

packages/query-core/src/subscribable.ts:54–56  ·  view source on GitHub ↗

* Called after a listener is added. Does nothing here; subclasses override it, e.g. to start * tracking what they observe once the first listener subscribes.

()

Source from the content-addressed store, hash-verified

52 * tracking what they observe once the first listener subscribes.
53 */
54 protected onSubscribe(): void {
55 // Do nothing
56 }
57
58 /**
59 * Called after a listener is removed. Does nothing here; subclasses override it, e.g. to clean up

Callers 1

subscribeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected