Skip to content

Commit

Permalink
feature(hooks): log initial state
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshuawuyts committed Sep 8, 2016
1 parent 2221c54 commit 1dc081f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ function dispatcher (hooks) {
// state rather than indvidual chunks, so we apply it outside the loop
if (!stateCalled && opts.state !== false) {
_state = wrapHook(_state, initialStateWraps)
if (onStateChangeHooks.length) {
applyHook(onStateChangeHooks, {}, _state, {}, 'init', createSend)
}
}

if (!opts.noSubscriptions) subsCalled = true
Expand Down

0 comments on commit 1dc081f

Please sign in to comment.