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

Method cleanup

packages/db/src/collection/lifecycle.ts:292–301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

290 }
291
292 public cleanup(): void {
293 // Cancel any pending idle cleanup
294 if (this.idleCallbackId !== null) {
295 safeCancelIdleCallback(this.idleCallbackId)
296 this.idleCallbackId = null
297 }
298
299 // Perform cleanup immediately (used when explicitly called)
300 this.performCleanup()
301 }
302}

Callers 1

performCleanupMethod · 0.45

Calls 1

performCleanupMethod · 0.95

Tested by

no test coverage detected