fix: address render performance review

Issue: #451
User-Visible: no
This commit is contained in:
Sergey Matyunin
2026-09-04 23:45:57 +03:00
parent f8b3445dc3
commit cb68492c99
41 changed files with 6985 additions and 6600 deletions
+3 -3
View File
@@ -27,6 +27,7 @@ const setup = () => {
snapshotIdentity: 'snapshot-a',
before: { id: 'before' },
wallUnionBefore: { path: 'old' },
epochBefore: 42,
}), true);
return { controller, beforeWalls };
};
@@ -128,12 +129,11 @@ test('#264 exact wall profile fails closed on preview and is rechecked on finish
test('#264 cancel restores retained masonry only for the same snapshot', () => {
const same = setup().controller;
assert.deepEqual(same.cancel('snapshot-a'), {
kind: 'cancelled', restoreWallUnion: { path: 'old' },
kind: 'cancelled', restoreWallUnion: { path: 'old' }, restoreEpoch: 42,
});
assert.deepEqual(same.cancel('snapshot-a'), { kind: 'no-op' });
const stale = setup().controller;
assert.deepEqual(stale.cancel('snapshot-b'), {
kind: 'cancelled', restoreWallUnion: null,
kind: 'cancelled', restoreWallUnion: null, restoreEpoch: null,
});
});