redux-future2

Future middleware for redux

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
redux-future2
101.0.04 years ago4 years agoMinified + gzip package size for redux-future2 in KB

Readme

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))