Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Redux
  3. redux-promise

redux-promise

MITJavaScript

FSA-compliant promise middleware for Redux that dispatches resolved or rejected promise values as actions.

GitHubGitHub
2.6k stars115 forks0 contributors

What is redux-promise?

Redux Promise is a middleware for Redux that handles promises and Flux Standard Action-compliant actions with promise payloads. It automatically dispatches the resolved or rejected values of promises as Redux actions, simplifying asynchronous logic in Redux applications. It is designed to work seamlessly with FSA specifications and supports server-side rendering by returning promises to the caller.

Target Audience

Redux developers building applications with asynchronous operations who want a standardized, FSA-compliant way to handle promises without manual dispatch logic.

Value Proposition

Developers choose Redux Promise for its simplicity in integrating promise-based async logic with Redux, FSA compliance for consistent action structures, and built-in support for server-side rendering scenarios.

Overview

FSA-compliant promise middleware for Redux.

Use Cases

Best For

  • Handling asynchronous API calls in Redux applications
  • Integrating promise-based libraries with Redux action creators
  • Server-side rendering with async data fetching in Redux
  • Reducing boilerplate code for async actions in Redux
  • Using Flux Standard Action specifications for promise payloads
  • Combining with redux-actions for streamlined async workflows

Not Ideal For

  • Projects using Redux Toolkit or modern async solutions like RTK Query that offer built-in, more integrated async handling
  • Applications requiring optimistic updates or complex side effect management beyond simple promise resolution
  • Teams that prefer using Redux Thunk or Redux Saga for fine-grained control over asynchronous logic and cancellable operations

Pros & Cons

Pros

Automatic Promise Handling

Automatically dispatches resolved or rejected promise values as Redux actions, eliminating manual dispatch boilerplate for async operations, as described in the README.

FSA Compliance

Adheres to Flux Standard Action specifications, ensuring consistent action structures with payload and error handling, which simplifies integration and reduces inconsistencies.

Server-Side Rendering Support

Returns a promise from the middleware, enabling middleware chains to wait for async operations to complete, crucial for SSR setups where data fetching is required before rendering.

Seamless redux-actions Integration

Works well with redux-actions for creating async action creators, reducing boilerplate and streamlining promise-based workflows, as demonstrated in the README examples.

Cons

No Optimistic Update Support

Does not dispatch actions at the start of async operations, making it unsuitable for applications needing immediate UI feedback, a limitation explicitly mentioned in the README.

Limited Async Patterns

Focuses solely on promises and lacks support for other async patterns like observables or generators, which are often required for more complex side effects or cancellations.

Redux-Only Dependency

Tightly coupled with Redux, so it cannot be used in projects with other state management libraries or those transitioning away from Redux, limiting its applicability.

Frequently Asked Questions

Quick Stats

Stars2,644
Forks115
Contributors0
Open Issues22
Last commit3 years ago
CreatedSince 2015

Tags

#redux-middleware#server-side-rendering#javascript#state-management#promise-handling#flux-standard-action#async-actions

Built With

R
Redux
J
JavaScript

Included in

Redux391
Auto-fetched 10 hours ago

Related Projects

redux-actionsredux-actions

Flux Standard Action utilities for Redux.

Stars6,451
Forks289
Last commit2 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub