Skip to content

Multiple Actions dispatched in Effect #4255

Answered by timdeschryver
Coconaut5 asked this question in Q&A
Discussion options

You must be logged in to vote

It boils down to how you see actions.
Are these unique events in the application, commands, a bit of both?
In the docs we see/suggest actions as unique events in an application, https://ngrx.io/guide/store/actions#actions

With that in mind, the response of an effect is a unique event (and a single action).
That's the reason why the rule exists.

If the distinction of an action isn't clearly communicated this leads to different opinions and thus also different implementations, such as the discussion of having a single action (event) or multiple actions (commands) dispatched.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@Coconaut5
Comment options

@rainerhahnekamp
Comment options

@Coconaut5
Comment options

@timdeschryver
Comment options

Answer selected by Coconaut5
@markostanimirovic
Comment options

@Coconaut5
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants