File tree 2 files changed +3
-5
lines changed 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ const logger = createLogger({
126
126
// Same as mutationTransformer but for actions
127
127
return action .type
128
128
},
129
- logActions: false , // Log Actions
129
+ logActions: true , // Log Actions
130
130
logMutations: true , // Log mutations
131
131
logger: console , // implementation of the `console` API, default `console`
132
132
})
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export default function createLogger ({
9
9
mutationTransformer = mut => mut ,
10
10
actionFilter = ( action , state ) => true ,
11
11
actionTransformer = act => act ,
12
- logActions = false ,
12
+ logActions = true ,
13
13
logMutations = true ,
14
14
logger = console
15
15
} = { } ) {
@@ -42,9 +42,7 @@ export default function createLogger ({
42
42
43
43
if ( logActions ) {
44
44
store . subscribeAction ( ( action , state ) => {
45
- const currentState = deepCopy ( state )
46
-
47
- if ( actionFilter ( action , currentState ) ) {
45
+ if ( actionFilter ( action , state ) ) {
48
46
const formattedTime = getFormattedTime ( )
49
47
const formattedAction = actionTransformer ( action )
50
48
const message = `action ${ action . type } ${ formattedTime } `
You can’t perform that action at this time.
0 commit comments