monokee/Sekoia

Computed Properties don't dispatch "data" event

Opened this issue · 2 comments

Custom "data" event is currently dispatched in calls to Component.setData(). This means that computations don't fire the event when their value changes.

Proposed solution:
Fire "data" events from within Reactor in the cue loop. This should simplify the event dispatching because we no longer have to distinguish between normal properties, store-bound properties and computed properties.

fixed since 1.1

Components no longer dispatch "data" events. State changes of nested reactive data structures automatically bubble to their ancestors and can be listened to via Component.state.observe()