by babbeloski · 10y ago · 0 comments
The potential reason not to do that is that more than a reducer may listen for a given action, even though I guess it's more an exception than the norm.
This allows you to encapsulate all of your Redux actions/reducers/etc into standalone "providers". It decouples pretty much all of your React components (UI) from your Redux logic (models/controllers), which maximually separates your concerns and makes it trivial to reuse anything anywhere. It also allows you to instantly swap databases and/or websocket implementations.