And in my component some-fancy-component I have next lines:
@action
callEditAction(...attrs){
if (this.editAction){
this.editAction(...attrs);
}
}
@action
callDeleteAction(id){
if (this.deleteAction){
this.deleteAction(id);
}
}
@action
callAddAction(...attrs){
if (this.addAction){
this.addAction(...attrs);
}
}
Yes, I should avoid duplication of code but it’s to make the example more verbose.
I think should be a possibility to avoid of creation these dummy action in some-fancy-component component.
The example doesn’t make much sense to me. None of the names used seem to connect to anything. There are also many patterns you could use and it is up to you to understand the context in which to use them.