Skip to content

Commit

Permalink
Merge pull request #30 from sbking/master
Browse files Browse the repository at this point in the history
Pass actions into middleware initializers
  • Loading branch information
didierfranc authored Apr 9, 2018
2 parents 45d9877 + b30ca4b commit 2fd0337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}

Expand Down

0 comments on commit 2fd0337

Please sign in to comment.