mirror of
https://github.com/jaandrle/deka-dom-el
synced 2025-07-01 12:22:15 +02:00
🔤 scopes
This commit is contained in:
@ -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