Redux Loader
A high order component and request management utility for Redux.
- Loads resources and passes them to the child components via props.
- Keeps tracks of requests already done and avoids duplicate requests.
Usage
Your Redux application must include the Redux-Loader reducer. It needs to be under the requests
key:
const allReducers = const store =
This reducer is used for keeping track of pending and completed requests.
Then create a high order component to load the data:
const Loader = reduxLoader; // You need to pipe Loader through connect stateLoader
How does it work
Heavily inspired by Marty