WarUI

Incremental recalculation on edits and transactions

GRID-A16-F22P1beyond-baselinePlanned

When cells are edited or rows are added, removed or updated, only the affected group paths are re-aggregated, and rows move between groups when their key changes. This keeps large grouped grids responsive under live data.

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

Live example

20,000 positions grouped by Desk > Trader, with a streaming simulator off.

Expected behavior

In incremental mode the recompute time stays roughly constant regardless of dataset size. Editing a row's Desk moves it to the new group and updates both groups' totals.

Planned API surface

api.applyTransaction({add, update, remove})options.grouping.recalcMode (incremental | full)events.aggregatesUpdatedoptions.grouping.flashChangedAggregates

Acceptance criteria

  • Incremental results always equal a full recompute (verified by a property-based test). (pending)
  • Changing a group key moves the row and updates the old and new ancestor aggregates. (pending)
  • Groups that become empty are removed, or retained per hideEmptyGroups. (pending)
  • aggregatesUpdated lists only the changed group paths. (pending)
  • Expansion and scroll positions are preserved during the updates. (pending)