@f/compose-middleware

Compose redux middleware.

Stats

StarsIssuesVersionUpdatedCreatedSize
@f/compose-middleware
002.0.06 years ago6 years agoMinified + gzip package size for @f/compose-middleware in KB

Readme

compose-middleware

Build status Git tag NPM version Code style

True redux middleware composition.

Installation

$ npm install @f/compose-middleware

Usage

var composeMiddleware = require('@f/compose-middleware')
var redux = require('redux')
var logger = require('redux-logger')
var thunk = require('redux-thunk')

var ware = composeMiddleware([
  thunk,
  logger()
])

var createStore = redux.applyMiddleware(ware)(redux.createStore)

API

composeMiddleware(middleware)

  • middleware - An array of redux style middleware.

Returns: A single redux style middleware function that is a composition of middleware.

License

MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.