Async utilities for Redux
This module is available as a npm package. To start using it, you have to install it first.
npm install --save @rebean/async
After installing it, you have to add snackbar reducer to your root reducer.
;;;// if you are using Redux Devtools;;// to block actions that are not in proper chronology;// to see async action status and parameters in Redux Devtools;;;;
Now you can connect it to your components - redux knows how to handle async actions.
To define async action you need redux-thunk installed and connected to the store.
The easiest way to create new async action creator is to use
from this package. Then you have to create reducer - you can use
handle* higher order
reducers to create your own.
Example of fetching list of users: