3 ms·
The example includes: `effect(() => console.log('Name changed:', this.firstName()));` But the text says "We also declare an effect, which callback will execut
by webprofusion 3y ago
The example includes:
`effect(() => console.log('Name changed:', this.firstName()));`
But the text says "We also declare an effect, which callback will execute every time we change the value of any of the signals it reads — in this case fullName"
Surely fullName is not involved at all?
- vulcanash999 3y agoI agree, it probably should have been `effect(() => console.log('Name changed:', this.fullName()));` That makes more sense given the context.
- JenrHywy 3y agoIt looks like they've updated the example to use fullName