I have a question around handling actions for asynchronous requests to an API. Imagine that you have a middleware, which will hit an API and fire off 3 actions as is common in best practice redux/flux. One for the initial request, one for success, and one for failure. Typically you can set a fetching flag and store an error if there is one.
Here is some basic example pseudo-ish code demonstrating this:
import {
CREATE_FOO_REQUEST,
CREATE_FOO_SUCCESS,
CREATE_FOO_FAILURE
} from './actions';