1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-07-29 07:00:16 +02:00

🐛 coumputed signal

This commit is contained in:
2025-03-03 15:23:55 +01:00
parent 6c4ddd655f
commit 7ec50e1660
5 changed files with 15 additions and 9 deletions

View File

@@ -716,7 +716,7 @@ function signal(value, actions) {
const [origin, ...deps_old] = deps.get(contextReWatch);
deps.set(contextReWatch, /* @__PURE__ */ new Set([origin]));
stack_watch.push(contextReWatch);
write(out, value.get());
write(out, value());
stack_watch.pop();
if (!deps_old.length) return;
const deps_curr = deps.get(contextReWatch);