Y
Hacker News
new
|
ask
|
show
|
jobs
by
akx
3277 days ago
The array example is a little weird.
// no events here arr.map(v => v + '-meh')
Since `.map` doesn't mutate the array in the first place, surely no one would expect observation events to occur anyway?
2 comments
gianlucaguarini
3277 days ago
now array methods dispatch as well in v1.1.0 I also thought it was weird thanks for your feedback anyway
link
logiccraft
3277 days ago
Indeed. This functionality really worries me.
Why would a non-mutation trigger listeners?
link
gianlucaguarini
3277 days ago
you are absolutely right, map doesn't belong to the mutational methods. Fixed in v1.1.1 thank you for your feedback
link