Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove old redux devtools #195

Merged
merged 1 commit into from
Oct 17, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 7 additions & 21 deletions app/containers/App.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,14 @@
/* eslint global-require: 0 */
// @flow
import React, { Component, PropTypes } from 'react';
import React, { PropTypes } from 'react';


export default class App extends Component {
render() {
const { children } = this.props;

return (
<div>
{children}
{
(() => {
if (process.env.NODE_ENV !== 'production') {
const DevTools = require('./DevTools');

return <DevTools />;
}
return false;
})()
}
</div>
);
}
export default function App({ children }) {
return (
<div>
{children}
</div>
);
}

App.propTypes = {
Expand Down
19 changes: 0 additions & 19 deletions app/containers/DevTools.js

This file was deleted.

11 changes: 3 additions & 8 deletions app/store/configureStore.development.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
/* eslint global-require: 0 */

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 @@ -18,12 +16,9 @@ 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
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,6 @@
"react-visibility-sensor": "^3.4.0",
"reactstrap": "^3.4.0",
"redux": "^3.6.0",
"redux-devtools": "^3.3.1",
"redux-devtools-dock-monitor": "^1.1.1",
"redux-devtools-inspector": "^0.8.0",
"redux-devtools-log-monitor": "^1.0.11",
"redux-logger": "^2.7.0",
"redux-thunk": "^2.1.0",
"rndm": "^1.2.0",
Expand Down