Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[Bug] should add redux devtools in demo app by default (#932)

Shan Heb748cb9bf96c
diff --git a/examples/demo-app/src/store.js b/examples/demo-app/src/store.js
index 9cda5a064..6dd06bee8 100644
--- a/examples/demo-app/src/store.js
+++ b/examples/demo-app/src/store.js
@@ -23,6 +23,7 @@ import {routerReducer, routerMiddleware} from 'react-router-redux';
import {browserHistory} from 'react-router';
import {enhanceReduxMiddleware} from 'kepler.gl/middleware';
import thunk from 'redux-thunk';
+// eslint-disable-next-line no-unused-vars
import window from 'global/window';
import demoReducer from './reducers/index';
@@ -41,13 +42,23 @@ export const enhancers = [applyMiddleware(...middlewares)];
const initialState = {};
-// add redux devtools
-const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
- actionsBlacklist: [
- '@@kepler.gl/MOUSE_MOVE',
- '@@kepler.gl/UPDATE_MAP'
- ]
-}) || compose;
+// eslint-disable-next-line prefer-const
+let composeEnhancers = compose;
+
+/**
+ * comment out code below to enable Redux Devtools
+ */
+/*
+if (window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__) {
+ composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
+ actionsBlacklist: [
+ '@@kepler.gl/MOUSE_MOVE',
+ '@@kepler.gl/UPDATE_MAP',
+ '@@kepler.gl/LAYER_HOVER'
+ ]
+ })
+};
+*/
export default createStore(
reducers,