diff --git a/src/applyMiddleware.js b/src/applyMiddleware.js index 65114cb28b..e9f923ebfd 100644 --- a/src/applyMiddleware.js +++ b/src/applyMiddleware.js @@ -17,8 +17,8 @@ import compose from './compose' * @returns {Function} A store enhancer applying the middleware. */ export default function applyMiddleware(...middlewares) { - return (createStore) => (reducer, preloadedState, enhancer) => { - var store = createStore(reducer, preloadedState, enhancer) + return (createStore) => (reducer, preloadedState) => { + var store = createStore(reducer, preloadedState) var dispatch = store.dispatch var chain = []