From bbef0520d24d4a88f77c40d4466450771281e2e5 Mon Sep 17 00:00:00 2001 From: NE_SmallTown Date: Wed, 21 Dec 2016 18:36:51 +0800 Subject: [PATCH] pr --- src/applyMiddleware.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = []