From b30ca4b95ef934ac233bffb51a59f6377c4637ff Mon Sep 17 00:00:00 2001 From: Stephen King Date: Mon, 9 Apr 2018 00:18:15 -0600 Subject: [PATCH] Pass actions into middleware initializers --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }