Skip to content

Commit

Permalink
no stringify for redux logger
Browse files Browse the repository at this point in the history
  • Loading branch information
p0o committed Jan 12, 2017
1 parent 5877c52 commit 88594d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/store.js
Expand Up @@ -67,14 +67,13 @@ if (process.env.ENABLE_LOGGER &&
middleware.push(createLogger({
collapsed: true,
duration: true,
stateTransformer: state => JSON.parse(JSON.stringify(state))
}));
}

const enhancer = compose(
applyMiddleware(...middleware),
persistState(['favorites', 'editor', 'app'], {
slicer: () => (state) => ({
slicer: () => state => ({
favorites: state.favorites,
editor: state.editor,
app: {
Expand Down

0 comments on commit 88594d9

Please sign in to comment.