IDE Navigation
In vanilla Redux, actions and reducers live in separate objects, so it is not always easy to know which reducers will run when an action is dispatched. You also have to wire reducers to actions manually, which makes it harder to move from the dispatching code to the reducer that handles it.
With AsyncRedux, if you want to see what an action does, you can simply navigate to the action in your IDE and the reducer is right there. There is no need for manual wiring because reducers are methods on the action objects themselves.
To navigate from the code that dispatches an action to the action implementation:
- In IntelliJ, use
Ctrl + Bon Windows and Linux, orCommand + Bon macOS. - In VS Code, use
F12orCtrl + clickon Windows and Linux, orF12orCommand + clickon macOS.
If you need to list all your actions, just go to the ReduxAction class declaration
(or your base action class AppAction) and ask
the IDE to list all of its subclasses.