@tshio/redux-api-content-middleware
v1.1.1
Published
## Installation
Downloads
106
Readme
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));