More batch (#1468)

* batch updates in client

* rearange updating logic

* utilety type

* guard undefinde in affectsLoaded

* fix: pause state not saved to restore point
This commit is contained in:
Alex Christoffer Rasmussen
2025-01-26 13:14:24 +01:00
committed by GitHub
parent bb1e9072fd
commit d34280c03d
6 changed files with 112 additions and 62 deletions
+1
View File
@@ -35,6 +35,7 @@ export const eventStore = {
for (const dataKey of changedKeys) {
socket.sendAsJson({ type: `ontime-${dataKey}`, payload: store[dataKey] });
}
socket.sendAsJson({ type: `ontime-flush` });
isUpdatePending = null;
changedKeys.clear();
});