WarUI

Delta streaming (add, update, remove)

GRID-A04-F22P1beyond-baselinePlanned

Applies a stream of row-level changes from WebSocket, SSE or any async iterator to the windowed cache. Updates patch loaded rows. Removes and inserts shift indices, and the total count is adjusted. Deltas for rows that are not loaded only adjust counts and mark blocks stale.

Planned. This page shows the specification from issue #180. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A simulated stream emits 5 random deltas per second over 50k rows.

Expected behavior

Updates flash cells in place. Adds and removes above the viewport adjust indices without moving the visible rows on screen. The status bar count changes live. Deltas for unloaded regions mark those blocks stale.

Planned API surface

remoteSource.subscribe(handlers)Delta { op: 'add'|'update'|'remove', id, index?, row?, version }api.applyDeltas(deltas)option: deltaPositioning: 'serverIndex'|'staleMark'event: deltasApplied

Acceptance criteria

  • An update to a loaded row id patches only the changed fields. (pending)
  • Insertions or removals above the viewport keep the first visible row on screen. (pending)
  • Under 'staleMark', a delta without an index marks affected blocks stale instead of guessing a position. (pending)
  • Deltas older than the cached data version are ignored (F20). (pending)
  • When sort or filter is active and the server reports no index, affected blocks are marked stale rather than reordered locally. (pending)