Skip to content

Commit

Permalink
Invoke devToolsExtension.updateStore, let middlewares work
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Aug 4, 2016
1 parent 0023d4d commit c27f47b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/store/configureStore.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ const enhancer = compose(
export default function configureStore(initialState) {
const store = createStore(rootReducer, initialState, enhancer);

if (window.devToolsExtension) {
window.devToolsExtension.updateStore(store);
}

if (module.hot) {
module.hot.accept('../reducers', () =>
store.replaceReducer(require('../reducers')) // eslint-disable-line global-require
Expand Down

0 comments on commit c27f47b

Please sign in to comment.