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
The support to publish domain events from aggregates leverages @AfterDomainEventPublication to trigger event resets in the aggregate. Implementations usually wipe out a collection which assumes mutability of the aggregate.
We could change that by inspecting the return type of the method annotated and use the value returned if it is assignable to the aggregate type