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

Function collectEvents

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

Collect events from an effect into an array

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

Source from the content-addressed store, hash-verified

59
60/** Collect events from an effect into an array */
61function collectEvents<T extends object = Record<string, unknown>>(
62 events: Array<DeltaEvent<T, any>>,
63) {
64 return (event: DeltaEvent<T, any>) => {
65 events.push(event)
66 }
67}
68
69/** Collect all events from a batch callback into an array */
70function collectBatchEvents<T extends object = Record<string, unknown>>(

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…