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

Method constructor

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

Source from the content-addressed store, hash-verified

2 protected listeners = new Set<TListener>()
3
4 constructor() {
5 this.subscribe = this.subscribe.bind(this)
6 }
7
8 subscribe(listener: TListener): () => void {
9 this.listeners.add(listener)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected