From 922c69a0de7fa509003b39b2a1dedbc2e5f89343 Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Mon, 16 May 2016 03:37:06 +0700 Subject: [PATCH] choo: add subscriptions --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 5e790c6..4393277 100644 --- a/index.js +++ b/index.js @@ -102,6 +102,9 @@ function bootstrap (events) { if (model.state) apply(model.name, model.state, initialState) if (model.reducers) apply(model.name, model.reducers, reducers) if (model.effects) apply(model.name, model.effects, effects) + if (model.subscriptions) { + apply(model.name, model.subscriptions, initialState) + } }) return {