- you need to have side effects
- you need to read from store to decide what to do
- you need to dispatch more than one action
- action produced by action creator needs to contain all the data reducer can need to shape the components state
- should not have any side effects
- should not read global application state
- should not manipulate data structures passed with the action, it should only pick the right data and merge it into state
What bugs me is that I end up having basically reducers like that:
This basically means that I don't really need a reducer. It can be one generic reducer + list of action types per component.
This is possible because my action creators build payloads that fit the state ... is it wrong?