yoshuawuyts / barracks

:mountain_railway: action dispatcher for unidirectional data flows
MIT License
177 stars 22 forks source link

feature: call onStateChange at boot time #67

Closed yoshuawuyts closed 7 years ago

yoshuawuyts commented 8 years ago

Once the initial state has been registered it would make sense to trigger the hook; that way the logger logs the initial state and all following states - the diff would be from an empty object (e.g. no state) to the initial state