Nonconformist Propaganda Machine

npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

redux-future2

1.0.0 • Public • Published

redux-future2

npm version npm downloads Build Status Coverage Status NSP Status

Future middleware for redux.

Usage

future : Store -> Function -> Action -> a

Redux middleware to dispatch actions that are Futures, also known as Asyncs or Tasks. Popular libraries providing Future implementations include crocks and Fluture.

If any action has a property called fork that is a function, the action is assumed to be a Future.

const { applyMiddleware, combineReducers, createStore } = require('redux')
const future = require('redux-future2')
 
const reducers = require('../ducks')
 
const store = createStore(combineReducers(reducers), applyMiddleware(future))

install

npm i redux-future2

Downloadsweekly downloads

335

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability