mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
chrone: sperate client and server to different repos.
This commit is contained in:
9
src/middleware/logger.js
Normal file
9
src/middleware/logger.js
Normal file
@@ -0,0 +1,9 @@
|
||||
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
|
||||
Reference in New Issue
Block a user