yoshuawuyts / barracks

:mountain_railway: action dispatcher for unidirectional data flows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feature: call onStateChange at boot time

yoshuawuyts opened this issue · comments

commented

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