Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Commit

Permalink
Update order of middleware
Browse files Browse the repository at this point in the history
Changing the order fixes an “undefined action” that get’s logged - see
this issue
reduxjs/redux-thunk#91
  • Loading branch information
corysmc committed Jun 27, 2018
1 parent 913ca03 commit e0a88f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
```
Expand Down

0 comments on commit e0a88f3

Please sign in to comment.