@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

Readme

Keywords

none

Package Sidebar

Install

npm i @flox/dispatch

Weekly Downloads

0

Version

1.2.0

License

MIT

Last publish

Collaborators

  • flox