cf-kyt-starter-universal-redux icon indicating copy to clipboard operation
cf-kyt-starter-universal-redux copied to clipboard

Write a custom API middleware instead of the promiseMiddleware library

Open janhoogeveen opened this issue 7 years ago • 1 comments

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

janhoogeveen avatar Mar 21 '17 17:03 janhoogeveen

https://github.com/NYTimes/redux-taxi might be a good option.

nickrttn avatar Oct 09 '17 15:10 nickrttn