Closed
Description
When destroying a component, observers observing component state get cancelled automatically while observers on store stay alive.
oncreate() {
this.observe(... // Gets cancelled
this.store.observe(... // Stays alive
This came as a surprise to me, with a bit of foot-gun potential. Would it make sense to autocancel store-observers, too?
Here is a slightly contrived REPL. Nested.html has observers spammig the console. The store.observer keeps logging after pressing the button.