redux-effects-http-cache

0.2.1 • Public • Published

redux-effects-http-cache

Cache HTTP requests to fetch requests to prevent duplicated requests.

Installation

$ npm install redux-effects-http-cache

Usage

Add the http cache middleware to the effects stack before the fetch middleware.

import effects from 'redux-effects';
import fetch from 'redux-effects-fetch';
import httpCache from 'redux-effects-http-cache';
 
applyMiddleware(effects, httpCache, fetch)(createStore);

/redux-effects-http-cache/

    Package Sidebar

    Install

    npm i redux-effects-http-cache

    Weekly Downloads

    1

    Version

    0.2.1

    License

    MIT

    Last publish

    Collaborators

    • leesiongchan