fix: make sure we do not pass svelte state into comlink

cant clone proxies
This commit is contained in:
2025-12-02 15:20:13 +01:00
parent d140f42468
commit becd7a1eb3

View File

@@ -90,7 +90,10 @@
let runIndex = 0;
async function update(g: Graph, s: Record<string, any> = graphSettings) {
async function update(
g: Graph,
s: Record<string, any> = $state.snapshot(graphSettings),
) {
runIndex++;
performanceStore.startRun();
try {