You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.
Hello,
at the moment, the default implementation of Union.dispatch doesn't delegate the dispatching if one of its type is of kind "union".
I propose to include this case in the implementation, so we can use union of unions :
With this implementation, something like this would work by default :
constTodoListAggregate.Command=union([AddTodo,EditTodo])TodoListAggregate.Command.dispatch(customDispatch)// dispatch to AddTodo or EditTodo based on custom logicconstCommand=union([TodoListAggregate.Command,AnotherAggregate.Command])// union of unions :DCommand(fooBar)// assuming fooBar is of type AddTodo, it will delegate the dispatching to TodoListAggregate.Command.dispatch method
The text was updated successfully, but these errors were encountered:
Hello,
at the moment, the default implementation of Union.dispatch doesn't delegate the dispatching if one of its type is of kind "union".
I propose to include this case in the implementation, so we can use union of unions :
With this implementation, something like this would work by default :
The text was updated successfully, but these errors were encountered: