From 814ccdff2bdbe30073737fbd34c781743fd0a9e7 Mon Sep 17 00:00:00 2001 From: Atif Afzal Date: Sun, 7 Feb 2016 13:27:05 +0530 Subject: [PATCH] chrome redux-devtools-extension support --- src/store/configureStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/configureStore.js b/src/store/configureStore.js index 8d07ed66d..f11904d81 100644 --- a/src/store/configureStore.js +++ b/src/store/configureStore.js @@ -6,7 +6,7 @@ import { createStore } from 'redux'; import rootReducer from '../reducers'; export default function configureStore(initialState) { - const store = createStore(rootReducer, initialState); + const store = (window.devToolsExtension ? window.devToolsExtension()(createStore) : createStore)(rootReducer, initialState); if (module.hot) { // Enable Webpack hot module replacement for reducers