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

Method constructor

packages/query-core/src/subscribable.ts:12–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 protected listeners = new Set<TListener>()
11
12 constructor() {
13 this.subscribe = this.subscribe.bind(this)
14 }
15
16 /**
17 * Registers a listener to be called on every update this object notifies about. Returns a function

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected