| 3427 | firstCommittedWindowIds.add(snapshot.id); |
| 3428 | debugSSD("runtime-emit-first-commit", { |
| 3429 | windowId: snapshot.id, |
| 3430 | phase: "evaluate-existing", |
| 3431 | wasPreconfigured, |
| 3432 | }); |
| 3433 | events.emitFirstCommit(existing.cache.window); |
| 3434 | dirtyWindowIds.add(snapshot.id); |
| 3435 | } |
| 3436 | |
| 3437 | const wasDirty = dirtyWindowIds.delete(snapshot.id); |
| 3438 | if (wasDirty) { |
| 3439 | const dirtyNodeIds = takeDirtyCompositionNodeIds( |
| 3440 | snapshot.id, |
| 3441 | existing.cache, |
| 3442 | ); |
| 3443 | debugSSD("runtime-evaluate-existing-dirty", { |
| 3444 | windowId: snapshot.id, |
| 3445 | wasPreconfigured, |
| 3446 | dirtyNodeIds, |
| 3447 | }); |
| 3448 | return { |
| 3449 | serialized: existing.cache.reevaluate(dirtyNodeIds).serialized, |
| 3450 | windowEffects: evaluateWindowEffects(effectConfig, snapshot.id, existing), |
| 3451 | }; |
| 3452 | } |
| 3453 | |
| 3454 | debugSSD("runtime-evaluate-existing-clean", { |
| 3455 | windowId: snapshot.id, |