Why are not you getting the action.type? ends up in default.
The log is saying "editing" which is the default case rather than creating a new article.
The code
handleActions(action) {
switch (action) {
case action.type === ActionTypes.CREATE_ARTICLE:
this.setState.article.id = Counter.increment();
this.setState.article.title = action.title;
this.setState.article.content = action.content;
console.log("adicionado")
break;
case action.type === ActionTypes.DELETE_ARTICLE:
console.log("deletando")
break;
default:
console.log("editando")
break;
}
}
Print log:
Intheimageabove,createtheobject,butthelogexitsthedefault"editing".