diff --git a/index.js b/index.js index b261e2f..68d530c 100644 --- a/index.js +++ b/index.js @@ -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