docs: add presentation projection comment to projectTransientState
This commit is contained in:
@@ -106,6 +106,9 @@ export const useDemoTimeline = (
|
|||||||
setTrace(null);
|
setTrace(null);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
// Presentation-only projection: derive transient state (interrupt payload,
|
||||||
|
// output, trace) from the canonical recording without executing live runtime
|
||||||
|
// steps. This is a display projection over recorded data, not live evidence.
|
||||||
const projectTransientState = useCallback((events: ReadonlyArray<DemoEvent>, appliedCount: number) => {
|
const projectTransientState = useCallback((events: ReadonlyArray<DemoEvent>, appliedCount: number) => {
|
||||||
const appliedEvents = events.slice(0, appliedCount);
|
const appliedEvents = events.slice(0, appliedCount);
|
||||||
const interruptEvent = appliedEvents.find((event) => event.stage === "interrupt");
|
const interruptEvent = appliedEvents.find((event) => event.stage === "interrupt");
|
||||||
|
|||||||
Reference in New Issue
Block a user