From e0a88f367565a69c7f5c477240ff979a120e93ba Mon Sep 17 00:00:00 2001 From: Cory McArthur Date: Wed, 27 Jun 2018 14:20:55 -0600 Subject: [PATCH] Update order of middleware MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changing the order fixes an “undefined action” that get’s logged - see this issue https://github.com/reduxjs/redux-thunk/issues/91 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9eae36c..8bc09a9 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ import logger from 'redux-logger'; // Add-on you might want import rootReducer from '../reducers/index'; const configureStore = (preloadedState: any) => - createStore(rootReducer, preloadedState, applyMiddleware(logger, thunk)); + createStore(rootReducer, preloadedState, applyMiddleware(thunk, logger)); export { configureStore }; ```