Skip to content

Commit c5d63de

Browse files
committed
Add support for redux-devtools-extension
1 parent 0aff46d commit c5d63de

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

common/js/store/index.dev.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ export default function configureStore(initialState, history = null) {
2020
// Add universal enhancers here
2121
let enhancers = [];
2222

23-
const enhancer = compose(...[
23+
const composeEnhancers = (
24+
typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
25+
) || compose;
26+
const enhancer = composeEnhancers(...[
2427
applyMiddleware(...middleware),
2528
...enhancers
2629
]);

0 commit comments

Comments
 (0)