Created
January 29, 2018 16:21
-
-
Save JeffreyMFarley/cd3c4d8e07e42f333364c9524e5ec643 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const logger = store => next => action => { | |
console.log( 'dispatching', action ); | |
const result = next( action ); | |
console.log( 'next state', store.getState() ); | |
return result; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment