UNPKG
@wenn/onb
Version:
latest (1.0.0)
1.0.0
onb-core
@wenn/onb
/
redux
/
middlewares
/
logs.js
11 lines
(8 loc)
•
270 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
log
= (
{ getState, dispatch }
) =>
next
=>
action
=>
{
if
(action.
type
.
indexOf
(
'@@'
) === -
1
) { process.
env
.
NODE_ENV
===
'development'
&&
console
.
info
(
'ACTION: '
+ action.
type
, action);
// eslint-disable-line
}
next
(action); };
export
default
log;