File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import reducer from '../reducers';
55export default function configureStore ( initialState ) {
66 const finalCreateStore = compose (
77 applyMiddleware ( thunk ) ,
8+ window . devToolsExtension ? window . devToolsExtension ( ) : f => f
89 ) ( createStore ) ;
910
1011 const store = finalCreateStore ( reducer , initialState ) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { createStore } from 'redux';
22import rootReducer from '../reducers' ;
33
44export default function configureStore ( initialState ) {
5- const store = createStore ( rootReducer , initialState ) ;
5+ const store = ( window . devToolsExtension ? window . devToolsExtension ( ) ( createStore ) : createStore ) ( rootReducer , initialState ) ;
66
77 if ( module . hot ) {
88 // Enable Webpack hot module replacement for reducers
You can’t perform that action at this time.
0 commit comments