choo: add subscriptions

This commit is contained in:
Yoshua Wuyts
2016-05-16 03:37:06 +07:00
parent 7301b71d86
commit 922c69a0de
+3
View File
@@ -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 {