Possibilité d'ajouter un item à la racine de l'arbre

This commit is contained in:
2015-10-19 09:02:10 +02:00
parent 8478519d20
commit 3d3a93ab26
7 changed files with 58 additions and 21 deletions

View File

@ -4,9 +4,9 @@ module.exports = function loggerMiddleware(store) {
return function(next) {
return function(action) {
debug('Action %j', action);
debug('Store current state %j', store.getState());
//debug('Store current state %j', store.getState());
next(action);
debug('Store new state %j', store.getState());
//debug('Store new state %j', store.getState());
if(action.error) {
console.error(action.error.stack || action.error);
}