webtides / element-js

Simple and lightweight base classes for web components with a beautiful API
MIT License
28 stars 3 forks source link

Store watcher should only trigger on value changes #81

Closed quarkus closed 1 year ago

quarkus commented 1 year ago

atm The Sore watcher is always called whenever the setter is invoked.

we should add a change detection and only trigger the callback chain on real changes just linke the property watcher does https://github.com/webtides/element-js/blob/main/src/BaseElement.js#L238

AC: