Skip to content

Commit

Permalink
Merge pull request reduxjs#1273 from mayankchd/master
Browse files Browse the repository at this point in the history
Change next to createStore for better readability
  • Loading branch information
gaearon committed Jan 25, 2016
2 parents f2be999 + 45438b5 commit 2336a9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/applyMiddleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import compose from './compose'
* @returns {Function} A store enhancer applying the middleware.
*/
export default function applyMiddleware(...middlewares) {
return (next) => (reducer, initialState) => {
var store = next(reducer, initialState)
return (createStore) => (reducer, initialState) => {
var store = createStore(reducer, initialState)
var dispatch = store.dispatch
var chain = []

Expand Down

0 comments on commit 2336a9f

Please sign in to comment.