Skip to content

Commit

Permalink
Change next to createStore for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayank Chandola authored and Mayank Chandola committed Jan 25, 2016
1 parent f2be999 commit 45438b5
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 45438b5

Please sign in to comment.