redux-composable-fetch
👏👏👏The missing fetch middleware for enterprise Redux apps, with multiple injection point for implementing cache, log, response unification or any request related functionalities.👏👏👏
WORK IN PROGRESS, USE AT YOUR OWN RISK
How it works
Usage
$ npm install -S redux-composable-fetch
redux-composable-fetch
provides a factory method createFetchMiddleware
and a utility function applyFetchMiddleware
, here's how you will use them:
;; // import all your middlewares for `fetch`, you will see what is a `middleware for fetch` in the following content;; // build our final fetch middleware firstconst finalFetchMiddleware = ; // then it's all redux thingyconst finalCreateStore = createStore;