Closed nhunzaker closed 6 years ago
Microcosm master batch processes snapshots given a history range. We can do the same thing with removing snapshots. Basically, instead of:
_removeSnapshot(action: Action) { delete this.snapshots[action.id] }
We could match the pattern for updating a snapshot range:
_removeSnapshotRange(source: Action, end: Action) { let focus = source while (focus && this.snapshots.hasOwnProperty(focus.id)) { delete this.snapshots[focus.id] } }
There are two benefits:
Implementation details have changed here.
Microcosm master batch processes snapshots given a history range. We can do the same thing with removing snapshots. Basically, instead of:
We could match the pattern for updating a snapshot range:
There are two benefits: