mirror of
https://github.com/jaandrle/deka-dom-el
synced 2026-10-25 08:51:48 +01:00
🔤 scopes
This commit is contained in:
1 parent
17e40fdd9c
commit
59efa84494
4 files changed
+10
-60
No files matched your search
@@ -21,9 +21,7 @@ function Counter() {
|
||||
setTimeout(()=> {
|
||||
// ok, BUT consider extract to separate function
|
||||
// see section below for more info
|
||||
scope.push();
|
||||
const ok= S(0);
|
||||
scope.pop();
|
||||
S.on(ok, console.log);
|
||||
setInterval(()=> ok.set(ok.get() + 1), 100);
|
||||
}, 100);
|
||||
|
||||
Reference in new issue
Block a user