All Projects → pburtchaell → Redux Promise Middleware

pburtchaell / Redux Promise Middleware

Licence: mit
Enables simple, yet robust handling of async action creators in Redux

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Redux Promise Middleware

Promise Fun
Promise packages, patterns, chat, and tutorials
Stars: ✭ 3,779 (+88.86%)
Mutual labels:  async, promises, async-functions
Swiftcoroutine
Swift coroutines for iOS, macOS and Linux.
Stars: ✭ 690 (-65.52%)
Mutual labels:  async, promises
Kovenant
Kovenant. Promises for Kotlin.
Stars: ✭ 657 (-67.17%)
Mutual labels:  async, promises
Caf
Cancelable Async Flows (CAF)
Stars: ✭ 1,027 (-48.68%)
Mutual labels:  async, promises
Promise
Light and type-safe binding to JS promises
Stars: ✭ 319 (-84.06%)
Mutual labels:  async, promises
Ava
Node.js test runner that lets you develop with confidence 🚀
Stars: ✭ 19,458 (+872.41%)
Mutual labels:  async, async-functions
Breeze
Javascript async flow control manager
Stars: ✭ 38 (-98.1%)
Mutual labels:  async, promises
Promise Pool
Map-like, concurrent promise processing
Stars: ✭ 258 (-87.11%)
Mutual labels:  async, promises
Swimmer
🏊 Swimmer - An async task pooling and throttling utility for JS
Stars: ✭ 94 (-95.3%)
Mutual labels:  async, promises
Symfony Async Kernel
[Deprecated] Symfony Async Kernel adpater
Stars: ✭ 111 (-94.45%)
Mutual labels:  async, promises
Functional Promises
Write code like a story w/ a powerful Fluent (function chaining) API
Stars: ✭ 141 (-92.95%)
Mutual labels:  async, promises
Amp
A non-blocking concurrency framework for PHP applications. 🐘
Stars: ✭ 3,457 (+72.76%)
Mutual labels:  async, promises
Tascalate Concurrent
Implementation of blocking (IO-Bound) cancellable java.util.concurrent.CompletionStage and related extensions to java.util.concurrent.ExecutorService-s
Stars: ✭ 144 (-92.8%)
Mutual labels:  async, promises
P Map
Map over promises concurrently
Stars: ✭ 639 (-68.07%)
Mutual labels:  async, promises
Exploring Async
An essay exploring different async techniques in JavaScript.
Stars: ✭ 280 (-86.01%)
Mutual labels:  async, promises
Modern Async
A modern JavaScript tooling library for asynchronous operations using async/await and promises
Stars: ✭ 31 (-98.45%)
Mutual labels:  async, promises
typescript-async
Creating Asynchronous Code with TypeScript
Stars: ✭ 44 (-97.8%)
Mutual labels:  promises, async-functions
Radon
Object oriented state management solution for front-end development.
Stars: ✭ 80 (-96%)
Mutual labels:  async, promises
Asynquence
Asynchronous flow control (promises, generators, observables, CSP, etc)
Stars: ✭ 1,737 (-13.19%)
Mutual labels:  async, promises
Hydra
⚡️ Lightweight full-featured Promises, Async & Await Library in Swift
Stars: ✭ 1,954 (-2.35%)
Mutual labels:  async, promises

Redux Promise Middleware

Build Status npm downloads

Redux Promise Middleware enables simple, yet robust handling of async action creators in Redux.

const asyncAction = () => ({
  type: 'PROMISE',
  payload: new Promise(...),
})

Given a single action with an async payload, the middleware transforms the action to a separate pending action and a separate fulfilled/rejected action, representing the states of the async action.

The middleware can be combined with Redux Thunk to chain action creators.

const secondAction = (data) => ({
  type: 'SECOND',
  payload: {...},
})

const firstAction = () => {
  return (dispatch) => {
    const response = dispatch({
      type: 'FIRST',
      payload: new Promise(...),
    })

    response.then((data) => {
      dispatch(secondAction(data))
    })
  }
}

Documentation and Help

Heads Up: Version 6 includes some breaking changes. Check the upgrading guide for help.

Issues

For bug reports and feature requests, file an issue on GitHub.

For help, ask a question on StackOverflow.

Releases

For older versions:

Maintainers

Please reach out to us if you have any questions or comments.

Patrick Burtchaell (pburtchaell):

Thomas Hudspith-Tatham (tomatau):

License

Code licensed with the MIT License (MIT).

Documentation licensed with the CC BY-NC License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].