Created
October 25, 2015 00:12
-
-
Save brentvatne/9d4b135b2ffdf499f26d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
export default store => next => action => { | |
console.log('dispatching', action.type); | |
let before = new Date(); | |
let result = next(action); | |
let after = new Date(); | |
let total = after - before; | |
console.log(`completed ${action.type} in ${total}ms`); | |
return result; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment