Skip to content

Commit

Permalink
add remote-redux-devtool
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Jacquin committed Feb 11, 2019
1 parent ca1fecf commit 68f68d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/store/configureStore.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import { createStore, compose, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import ReduxPromise from 'redux-promise';
import { composeWithDevTools } from 'remote-redux-devtools';

import rootReducer from '../reducers';

export default function configureStore(initialState) {
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const composeEnhancers = process.env.NODE_ENV === 'production'
? compose
: window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || composeWithDevTools;

const store = createStore(
rootReducer,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
"redux": "^4.0.0",
"redux-promise": "^0.6.0",
"redux-thunk": "^2.2.0",
"remote-redux-devtools": "^0.5.16",
"sass-loader": "^7.0.1",
"style-loader": "^0.23.0",
"url-loader": "^1.0.1",
Expand Down

0 comments on commit 68f68d4

Please sign in to comment.