I'm thinking about passing dispatcher to a dispatch payload, in order to dispatch from the command. Is this a bad idea?
is dispatching from a command an antipattern?
Hi @nik0kin, the command dispatcher supports returning new commands. Wouldn't it be suitable for your use case?
Example:
execute() {
// perform your actions...
return [new AnotherCommand().setPayload({ ... })];
}