Managing fetch actions
If you are fetching data from a server, your app needs to manage that relationship. The redux manual demonstrates the need for at least three action:
FETCH_SUCCESS. The redux manual's reddit example shows a slightly different setup, omitting the
FAILURE and renaming
Long story short, we need to expose the API data fetching lifecycle to our app.
- begin fetching
- receive data or receive error (or bail when cancelled)