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

Method off

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

* Unsubscribe from a collection event

(
    event: T,
    callback: CollectionEventHandler<T>,
  )

Source from the content-addressed store, hash-verified

966 * Unsubscribe from a collection event
967 */
968 public off<T extends keyof AllCollectionEvents>(
969 event: T,
970 callback: CollectionEventHandler<T>,
971 ) {
972 this._events.off(event, callback)
973 }
974
975 /**
976 * Wait for a collection event

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected