MCPcopy Index your code
hub / github.com/TanStack/db / cleanup

Function cleanup

packages/angular-db/src/index.ts:235–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233
234 let unsub: (() => void) | null = null
235 const cleanup = () => {
236 unsub?.()
237 unsub = null
238 }
239
240 effect((onCleanup) => {
241 const currentCollection = collection()

Callers 6

injectLiveQueryFunction · 0.70
test-setup.tsFile · 0.50
teardownFunction · 0.50
test-setup.tsFile · 0.50
teardownFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…