Skip to content

Commit

Permalink
Add redux dev tool
Browse files Browse the repository at this point in the history
  • Loading branch information
choeisai committed Jan 27, 2017
1 parent 1484b61 commit 9a26be8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions js/store/configureStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ var {persistStore, autoRehydrate} = require('redux-persist');
var {AsyncStorage} = require('react-native');

var isDebuggingInChrome = __DEV__ && !!window.navigator.userAgent;
import devToolsEnhancer from 'remote-redux-devtools';

var logger = createLogger({
predicate: (getState, action) => isDebuggingInChrome,
Expand All @@ -50,6 +51,7 @@ function configureStore(onComplete: ?() => void) {
// const store = autoRehydrate()(createF8Store)(reducers);
const store = autoRehydrate()(createStore)(
reducers,
devToolsEnhancer({ realtime: true }),
undefined,
applyMiddleware(thunk, promise, array, analytics, logger)
);
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
"nodemon": "^1.11.0",
"react-addons-test-utils": "^15.4.1",
"react-test-renderer": "^15.4.1",
"redux-mock-store": "^1.2.1"
"redux-mock-store": "^1.2.1",
"remote-redux-devtools": "^0.5.7"
},
"jest": {
"haste": {
Expand Down

0 comments on commit 9a26be8

Please sign in to comment.