How can I send actions INTO a component?

EDIT: Disregard this code, it was a POC and it doesn’t seem to match how closure actions actually work ^^

tbh I haven’t looked into that yet, but it seems that this would remove the need for my solution altogether.

If actions have return values, in my component I can simply do:

validate: function() {
  var isValid = this.sendAction('validate');
  if (!isValid) {
    this.set('error', 'some error');
  }
}

which would be much cleaner anyway, as the whole component logic now is only in the component.