Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix preserving event order when dispatched from aggregate root via event handler #405

Merged
merged 2 commits into from
Apr 18, 2023

Conversation

daniser
Copy link

@daniser daniser commented Mar 31, 2023

When firing event from reactor, dispatched event should go after event that triggered the reactor. Example:
MoneyAdded -> DoubleBalanceReactor -> MoneyMultiplied
currently dispatches events to the bus MoneyMultiplied first. This PR fixes that behaviour.

@freekmurze
Copy link
Member

@rubenvanassche I think this is fine. Could you double check that this won't result in issues for our client projects?

@rubenvanassche
Copy link
Member

@sebastiandedeyne, doesn't look like a problem to me, even a solution to some problems, what do you think?

@sebastiandedeyne sebastiandedeyne merged commit 0a703db into spatie:main Apr 18, 2023
@daniser daniser deleted the bugfix/event-dispatch-order branch April 25, 2023 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants