mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
10 lines
260 B
TypeScript
10 lines
260 B
TypeScript
// @ts-nocheck
|
|
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 |