State Management · Senior · Question 72 of 75

When is an event bus better than shared state for cross-feature communication?

Explanation

Storing transient events in state leads to flags that must be reset. Events decouple producers and consumers; persistent facts belong in state.

Further reading

Problem with a question

State Management · Senior · question 72

Test yourself

Take the State Management · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz