This package has been deprecated

Author message:

This middleware can not handle multiple async calls logically so I'm depricating it

redux-promises-concluder

1.0.0 • Public • Published

redux-promises-concluder

A Redux middleware to keep track of active promises and notify when all resolved. Useful in server side rendering of single page applications.

Install

npm install redux-promises-concluder --save

or

yarn add redux-promises-concluder

Usage

const concluderMiddleware = require('redux-promises-concluder')(concluded)

function concluded(getState) {
  console.log('All promises concluded. The final state is', getState())
  // here we can send a response to the user
}

let store = createStore(reducer, defaultState,
  compose(applyMiddleware(concluderMiddleware)))

Package Sidebar

Install

npm i redux-promises-concluder

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • arashmilani