cf-kyt-starter-universal-redux
cf-kyt-starter-universal-redux copied to clipboard
Write a custom API middleware instead of the promiseMiddleware library
We're using the promiseMiddleware library mostly so we can do API calls and resolve those before starting a render on the server. In the Redux documentation there is a beautiful example of how to abstract away an API call.
http://redux.js.org/docs/recipes/ReducingBoilerplate.html#async-action-creators
https://github.com/NYTimes/redux-taxi might be a good option.