mirror of
https://github.com/jaandrle/deka-dom-el
synced 2025-07-01 20:32:13 +02:00
⚡ bs/lint
This commit is contained in:
@ -3,8 +3,8 @@ import { S } from "deka-dom-el/signals";
|
||||
// Debugging a derived signal
|
||||
const name = S('Alice');
|
||||
const greeting = S(() => {
|
||||
console.log('Computing greeting...');
|
||||
return 'Hello, ' + name.get();
|
||||
console.log('Computing greeting...');
|
||||
return 'Hello, ' + name.get();
|
||||
});
|
||||
|
||||
// Monitor the derived signal
|
||||
@ -17,4 +17,4 @@ name.set('Bob'); // Should trigger computation and listener
|
||||
// Computing greeting...
|
||||
// Greeting changed to: Hello, Alice
|
||||
// Computing greeting...
|
||||
// Greeting changed to: Hello, Bob
|
||||
// Greeting changed to: Hello, Bob
|
||||
|
Reference in New Issue
Block a user