debug actions

This commit is contained in:
paweldomas 2018-05-14 15:57:44 +02:00 committed by Lyubo Marinov
parent 7e1d97665a
commit 31905d4f63
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,8 @@ import { sendEvent } from './functions';
* @returns {Function}
*/
MiddlewareRegistry.register(store => next => action => {
action.type && console.info(`ACTION ${getSymbolDescription(action.type)}`);
const result = next(action);
const { type } = action;