1 import { ActionReducer } from '@ngrx/store';
3 // console.log all actions
4 export function debug(reducer: ActionReducer<any>): ActionReducer<any> {
5 return function(state, action) {
6 console.log('state', state);
7 console.log('action', action);
9 return reducer(state, action);