summaryrefslogtreecommitdiff
path: root/frontend/src/store.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/store.js')
-rw-r--r--frontend/src/store.js11
1 files changed, 3 insertions, 8 deletions
diff --git a/frontend/src/store.js b/frontend/src/store.js
index 9c5a063b..2a5bf4bb 100644
--- a/frontend/src/store.js
+++ b/frontend/src/store.js
@@ -1,7 +1,8 @@
// @flow
import createHistory from 'history/createBrowserHistory';
import { routerMiddleware } from 'react-router-redux';
-import { applyMiddleware, compose, createStore } from 'redux';
+import { applyMiddleware, createStore } from 'redux';
+import { composeWithDevTools } from 'redux-devtools-extension';
import createSagaMiddleware from 'redux-saga';
import type { GlobalState } from './reducers';
import { createReducer } from './reducers';
@@ -16,13 +17,7 @@ export function configureStore(initialState: GlobalState = {}) {
const enhancers = [applyMiddleware(...middlewares)];
- const composeEnhancers = process.env.NODE_ENV !== 'production' &&
- typeof window === 'object' &&
- window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
- ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
- : compose;
-
- const store = createStore(createReducer(), initialState, composeEnhancers(...enhancers));
+ const store = createStore(createReducer(), initialState, composeWithDevTools(...enhancers));
sagaMiddleware.run(rootSaga);
bgstack15