drborges / arbor-store

Seamless state management made with ❤️
https://github.com/drborges/arbor-store
8 stars 0 forks source link

Subscribers should be notified with the current state upon subscription #50

Closed drborges closed 6 years ago

drborges commented 6 years ago

Currently, subscribers are only notified of mutations when they happen and never have a chance to handle the current store state upon their subscription.

This would allow for instance React dev tools to correctly show the current app state on its first rendering cycle (before any user interactions have taken place).