/**
 * Logs all actions and states after they are dispatched.
 */ const Logger = store => next => action => { console . group ( action . type ) ; console . info ( 'dispatching' , action ) ; let result = next ( action ) ; console . log ( 'next state' , store . getState ( ) ) ; console . groupEnd ( ) ; return result ; } ; export default Logger ;