Skip to content

Latest commit

 

History

History

redux-api-content-middleware

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Content middleware

Installation

Using yarn:

$ yarn add @tshio/redux-api-content-middleware

Using npm:

$ npm install --save @tshio/redux-api-content-middleware

Then, to enable contentMiddleware, use applyMiddleware:

import { applyMiddleware, createStore } from 'redux';

import { apiMiddleware } from 'redux-api-middleware';
import contentMiddleware from '@tshio/redux-api-content-middleware';

import { appReducer } from 'app/app.reducer';

const middlewares = [contentMiddleware, apiMiddleware];

const store = createStore(appReducer, applyMiddleware(...middlewares));