Every dispatched action in Redux is sent to all reducers. This means a single action can be handled in different ways by different reducers. In this lesson we’ll look at how this can be used to handle updates in multiple parts of our state tree in response to a single action.
wow, coming from Vuex to Redux makes me think Redux is just a total mess. It all just seems arbitrary and hacked together.
Really struggling to understand how the behaviour of CONST action values is determined? Why does an imported
TODO_ADD affect the messages store? Also, it seems an action is called by virtue of the type value within its return object? Is this the case?
Also switch statements for the store? Who came up with that idea? So ugly!
I'm not coming from Vue background. But seeing someone else like me struggling with Redux helps me think I'm just not so bad learner haha.
TODO_ADD to affect the messages reducer, Jack you need to know that when a single action is dispatched, every reducer is called. So when
TODO_ADD is dispatched, todos and messages reducers are called. That should be explained in the course. And I think they mention this on other course pure on Redux.