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

Method cleanup

packages/db/src/collection/changes.ts:224–227  ·  view source on GitHub ↗

* Clean up the collection by stopping sync and clearing data * This can be called manually or automatically by garbage collection

()

Source from the content-addressed store, hash-verified

222 * This can be called manually or automatically by garbage collection
223 */
224 public cleanup(): void {
225 this.batchedEvents = []
226 this.shouldBatchEvents = false
227 }
228}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected