State Management · Senior · Question 15 of 75

A reducer for orders/placed must also clear the cart slice. What's the idiomatic way?

Explanation

Reducers can't dispatch or touch other slices. Many reducers responding to one event is the intended Redux model: the action describes what happened, and each slice decides how to react.

Further reading

Problem with a question

State Management · Senior · question 15

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