awesome-repositories.com
Blog
MCP
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
gaearon avatar

gaearon/redux-thunk

0
View on GitHub↗
17,694 stars·1,019 forks·TypeScript·MIT·7 vues

Redux Thunk

Redux-thunk is a middleware for Redux that enables action creators to return functions instead of plain objects. It serves as an asynchronous state management tool and functional action dispatcher that coordinates complex workflows and delays state updates until asynchronous tasks are complete.

This middleware grants action creators access to the store state and dispatch methods, allowing for the execution of conditional logic and the coordination of multiple asynchronous operations. It enables the injection of custom dependencies and service layers to decouple business logic from the core state management process.

The project covers the handling of asynchronous actions, client-side state logic, and the integration of custom logic into the Redux dispatch process to manage API calls and timed events.

Features

  • Asynchronous State Managers - Acts as a logic layer for Redux that coordinates complex workflows and delays state updates until async tasks complete.
  • Asynchronous Action Handling - Handles the lifecycle of asynchronous operations within actions to manage state transitions.
  • Action Dispatch Middleware - Wraps the store dispatch method to determine if an action should be executed as a function or processed as a standard object.
  • Action Dispatchers - Intercepts action creators to execute them as functions rather than passing plain objects to the reducer.
  • Functional State Transitions - Handles complex logic and asynchronous updates within a Redux store by dispatching functions.
  • Middleware Extensions - Extends the Redux dispatch process to enable custom logic, dependency injection, and state access.
  • Action Dispatchers - Provides a mechanism for action creators to access store state and dispatch methods for conditional logic.
  • Asynchronous Middleware - Provides middleware for Redux that enables action creators to return functions for handling asynchronous operations.
  • Asynchronous Dispatching - Allows background tasks to be performed and delays the final state update dispatch until specific conditions are met.
  • Deferred Execution - Implements deferred execution of state updates by allowing asynchronous logic to run before the final dispatch.
  • Async Flow Patterns - Coordinates multiple asynchronous operations using promises and async/await within action creators.
  • Higher-Order Function Wrapping - Wraps business logic inside functions that can be dispatched to handle cross-cutting async concerns.
  • Global State Stores - Allows action creators to read the current global state to execute conditional logic before updating the store.
  • Store Access Closures - Provides access to the store's state and dispatch methods within action creators using closures.
  • Client-Side Logic - Organizes business logic outside of UI components using functional action creators to coordinate state updates.
  • React - A JavaScript library for building user interfaces - Listed in the “React - A JavaScript library for building user interfaces” section of the Awesome Redux awesome list.
  • Side Effects - Listed in the “Side Effects” section of the Awesome Redux awesome list.

Historique des stars

Graphique de l'historique des stars pour gaearon/redux-thunkGraphique de l'historique des stars pour gaearon/redux-thunk

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Alternatives open source à Redux Thunk

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Redux Thunk.
  • redux-observable/redux-observableAvatar de redux-observable

    redux-observable/redux-observable

    7,815Voir sur GitHub↗

    Redux-Observable is a functional middleware for Redux that treats action streams as observables to manage complex asynchronous side effects and timing. It acts as an asynchronous action orchestrator, transforming streams of Redux actions into new actions through pipelines of observable-based side effects to coordinate application state changes. The project allows for the dynamic loading, injection, and replacement of side-effect streams at runtime. This enables the addition of asynchronous task handlers without requiring a full application restart, supporting code splitting and lazy loading o

    TypeScript
    Voir sur GitHub↗7,815
  • reduxjs/redux-thunkAvatar de reduxjs

    reduxjs/redux-thunk

    17,695Voir sur GitHub↗

    redux-thunk is a middleware for Redux that enables action creators to return functions instead of objects. This allows the store to handle asynchronous side effects and manage complex workflows and delayed state updates. The middleware acts as a side effect orchestrator that intercepts dispatched functions to execute asynchronous logic, such as API calls. It also functions as a dependency injection layer, allowing external services or mock objects to be passed into action creators to improve modularity and testability. The project provides capabilities for orchestrating control flow and coor

    TypeScript
    Voir sur GitHub↗17,695
  • fcomb/redux-loggerAvatar de fcomb

    fcomb/redux-logger

    5,722Voir sur GitHub↗

    redux-logger is a Redux state logger and JavaScript state debugger designed to record actions and state transitions in the browser console. It functions as middleware that captures state changes and action payloads within a Redux store to assist in debugging application flow. The project provides a console log formatter to customize the appearance of logs using colors, timestamps, and execution durations. It allows for the restriction of recorded actions through custom predicates to reduce console noise and includes capabilities to transform complex state data into readable formats. The tool

    JavaScript
    Voir sur GitHub↗5,722
  • mobxjs/mobx-state-treeAvatar de mobxjs

    mobxjs/mobx-state-tree

    7,050Voir sur GitHub↗

    MobX State Tree is a structured, tree-based state management library for JavaScript applications that combines typed model definitions with reactive snapshots and patch-based change tracking. It provides a reactive state container with runtime and compile-time type safety, where application state is defined as a tree of typed models with collocated actions, computed views, and lifecycle hooks for predictable state mutations. The library is built around an action-centric mutation model that encapsulates all state changes within named functions that directly modify the tree, supported by genera

    TypeScripthacktoberfestmobxmobx-state-tree
    Voir sur GitHub↗7,050
Voir les 30 alternatives à Redux Thunk→

Questions fréquentes

Que fait gaearon/redux-thunk ?

Redux-thunk is a middleware for Redux that enables action creators to return functions instead of plain objects. It serves as an asynchronous state management tool and functional action dispatcher that coordinates complex workflows and delays state updates until asynchronous tasks are complete.

Quelles sont les fonctionnalités principales de gaearon/redux-thunk ?

Les fonctionnalités principales de gaearon/redux-thunk sont : Asynchronous State Managers, Asynchronous Action Handling, Action Dispatch Middleware, Action Dispatchers, Functional State Transitions, Middleware Extensions, Asynchronous Middleware, Asynchronous Dispatching.

Quelles sont les alternatives open-source à gaearon/redux-thunk ?

Les alternatives open-source à gaearon/redux-thunk incluent : redux-observable/redux-observable — Redux-Observable is a functional middleware for Redux that treats action streams as observables to manage complex… reduxjs/redux-thunk — redux-thunk is a middleware for Redux that enables action creators to return functions instead of objects. This allows… fcomb/redux-logger — redux-logger is a Redux state logger and JavaScript state debugger designed to record actions and state transitions in… mobxjs/mobx-state-tree — MobX State Tree is a structured, tree-based state management library for JavaScript applications that combines typed… reflux/refluxjs — Refluxjs is a state management library designed to implement a unidirectional dataflow architecture. It manages… rackt/redux — Redux is a JavaScript state management library that serves as a centralized state container for application data. It…