diff --git a/src/index.js b/src/index.js index d3952fe..508027c 100644 --- a/src/index.js +++ b/src/index.js @@ -77,7 +77,7 @@ export const initStore: Function = (store, ...middlewares) => { super() self = this this.state = store.initialState - initializedMiddlewares = middlewares.map(m => m(store, self)) + initializedMiddlewares = middlewares.map(m => m(store, self, actions)) this.value = { actions, state: this.state } }