fix two timers bugs

This commit is contained in:
Joeri Exelmans 2025-11-02 13:25:21 +01:00
parent 1470a99665
commit 1660b06064
3 changed files with 9 additions and 3 deletions

View file

@ -212,7 +212,7 @@ export function App() {
return () => {
if (timeout) clearTimeout(timeout);
}
}, [time, trace]); // <-- todo: is this really efficient?
}, [time, currentTraceItem]); // <-- todo: is this really efficient?
function appendNewConfig(simtime: number, cause: string, computeNewState: () => [RaisedEvent[], CoupledState]) {
let newItem: TraceItem;