Skip to content

Commit

Permalink
Merge pull request #167 from chentsulin/feature/redux-logger
Browse files Browse the repository at this point in the history
Added redux-logger
  • Loading branch information
chentsulin committed Mar 3, 2016
2 parents 268b56d + 713ef23 commit f132fe1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/store/configureStore.development.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
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',
collapsed: true,
});

const router = routerMiddleware(hashHistory);

const enhancer = compose(
applyMiddleware(thunk, router),
applyMiddleware(thunk, router, logger),
DevTools.instrument(),
persistState(
window.location.href.match(
Expand Down

0 comments on commit f132fe1

Please sign in to comment.