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

Method handleSourceChanges

packages/db/src/query/effect.ts:637–643  ·  view source on GitHub ↗

Handle incoming changes from a source collection

(
    alias: string,
    changes: Array<ChangeMessage<any, string | number>>,
  )

Source from the content-addressed store, hash-verified

635
636 /** Handle incoming changes from a source collection */
637 private handleSourceChanges(
638 alias: string,
639 changes: Array<ChangeMessage<any, string | number>>,
640 ): void {
641 this.sendChangesToD2(alias, changes)
642 this.scheduleGraphRun(alias)
643 }
644
645 /**
646 * Schedule a graph run via the transaction-scoped scheduler.

Callers 1

startMethod · 0.95

Calls 2

sendChangesToD2Method · 0.95
scheduleGraphRunMethod · 0.95

Tested by

no test coverage detected