@flox/dispatch

1.2.0 • Public • Published

flo-dispatch

Build status Git tag NPM version Code style

Create a dispatch function from middleware, with flo at the top.

Installation

$ npm install flo-dispatch

Usage

import dispatcher from '@flox/dispatch'
import rlog from 'redux-log'

let arr = []
let log = dispatcher(rlog(arr))

log(function * () {
  yield 'hello'
  yield 'world'
})

arr // => ['hello', 'world']

API

createDispatch(mw)

  • mw - redux middleware

Returns: a function that dispatches actions to the middleware stack

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.0
    3

Package Sidebar

Install

npm i @flox/dispatch

Weekly Downloads

1

Version

1.2.0

License

MIT

Last publish

Collaborators

  • flox