Skip to content

Commit

Permalink
Use window.devToolsExtension, remove redux-devtools dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Jun 23, 2016
1 parent 5338f9d commit 281be79
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 32 deletions.
8 changes: 0 additions & 8 deletions app/containers/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ export default class App extends Component {
return (
<div>
{this.props.children}
{
(() => {
if (process.env.NODE_ENV !== 'production') {
const DevTools = require('./DevTools'); // eslint-disable-line global-require
return <DevTools />;
}
})()
}
</div>
);
}
Expand Down
13 changes: 0 additions & 13 deletions app/containers/DevTools.js

This file was deleted.

9 changes: 1 addition & 8 deletions app/store/configureStore.development.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { createStore, applyMiddleware, compose } from 'redux';
import { persistState } from 'redux-devtools';
import thunk from 'redux-thunk';
import createLogger from 'redux-logger';
import { hashHistory } from 'react-router';
import { routerMiddleware } from 'react-router-redux';
import rootReducer from '../reducers';
import DevTools from '../containers/DevTools';

const logger = createLogger({
level: 'info',
Expand All @@ -16,12 +14,7 @@ const router = routerMiddleware(hashHistory);

const enhancer = compose(
applyMiddleware(thunk, router, logger),
DevTools.instrument(),
persistState(
window.location.href.match(
/[?&]debug_session=([^&]+)\b/
)
)
window.devToolsExtension ? window.devToolsExtension() : noop => noop
);

export default function configureStore(initialState) {
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@
"mocha": "^2.5.3",
"node-libs-browser": "^1.0.0",
"react-addons-test-utils": "^15.1.0",
"redux-devtools": "^3.3.1",
"redux-devtools-dock-monitor": "^1.1.1",
"redux-devtools-log-monitor": "^1.0.11",
"redux-logger": "^2.6.1",
"selenium-webdriver": "^2.53.2",
"sinon": "^1.17.4",
Expand Down

0 comments on commit 281be79

Please sign in to comment.