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

Function collectBatchEvents

packages/db/tests/effect.test.ts:70–76  ·  view source on GitHub ↗

Collect all events from a batch callback into an array

(
  events: Array<DeltaEvent<T, any>>,
)

Source from the content-addressed store, hash-verified

68
69/** Collect all events from a batch callback into an array */
70function collectBatchEvents<T extends object = Record<string, unknown>>(
71 events: Array<DeltaEvent<T, any>>,
72) {
73 return (batch: Array<DeltaEvent<T, any>>) => {
74 events.push(...batch)
75 }
76}
77
78// ---------------------------------------------------------------------------
79// Tests

Callers 1

effect.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…