MCPcopy Create free account
hub / github.com/TanStack/db / subscriberCount

Method subscriberCount

packages/db/src/collection/index.ts:419–421  ·  view source on GitHub ↗

* Get the number of subscribers to the collection

()

Source from the content-addressed store, hash-verified

417 * Get the number of subscribers to the collection
418 */
419 public get subscriberCount(): number {
420 return this._changes.activeSubscribersCount
421 }
422
423 /**
424 * Register a callback to be executed when the collection first becomes ready

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected