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
Saga: Responding to event by issuing multiple commands #29
Comments
Seems like I was using it the wrong way - the following seems to be working for me:
I'd like to suggest to add an example of that case to the example repository for guys like me that have not been working with RxJS before? IMO it's pretty common that you'll need to respond to an event by issuing multiple commands at some point. |
Hi @tschachten, |
Just use a mergeMap next time.
|
how to get a req/res like event stream ? |
I'm submitting a...
Current behavior
Whenever I try to respond to an event within a saga by issuing multiple commands an error gets thrown and my application crashes.
Debugging showed me that the error seems to be 'CommandHandler not found exception!', but I don't know where this error arises from - when returning just 1 command instead of multiple ones then everything is working fine.
Expected behavior
A saga can return multiple commands in response to an event.
Minimal reproduction of the problem with instructions
My saga simplified looks like this:
What is the motivation / use case for changing the behavior?
Having a saga that is able to issue multiple commands in response to an event.
Environment
The text was updated successfully, but these errors were encountered: