diff --git a/src/index.js b/src/index.js index 4df2006..f7a53b8 100644 --- a/src/index.js +++ b/src/index.js @@ -60,6 +60,7 @@ export default function createStore(state) { let ret = action.apply(this, args); if (ret!=null) { if (ret.then) return ret.then(apply); + if (typeof ret==='function') return ret(apply); return apply(ret); } };