FindSoftware

Redux Thunk

Redux middleware that lets action creators return functions, which can dispatch actions and read the store state.

Redux Thunk is middleware for Redux that lets an action creator return a function instead of a plain action object. The middleware calls that function with the store’s dispatch and getState methods, so the function can read the current state and dispatch actions at a later time or only when a condition is met. The Redux documentation on thunks describes the pattern in more detail.

With Redux’s createStore, the middleware is installed through applyMiddleware. Redux Toolkit’s configureStore adds it by default.

Worth knowing

The thunk middleware is not part of the Redux core library, so a store set up by hand needs the package added.

Identity

Status
Active
Maintainer
Dan Abramov4
First release
20155

Rendering and deploy

Install with
npm3

Releases

Current major version
36
Last release
2023-12-046

Adoption

GitHub stars
17,6541
npm downloads a week
49,830,6438
Contributors
497
Dependent repositories
591,4089
Dependent packages
7,3659

Why these figures do not compare

Sources

  1. 2026-11-16: links, Written in, License, GitHub stars
    api.github.com/repos/reduxjs/redux-thunk
  2. 2026-11-16: links
    redux.js.org/usage/writing-logic-thunks
  3. 2026-11-16: Categories, Built on, Install with
    github.com/reduxjs/redux-thunk/blob/master/README.md
  4. 2026-11-16: Maintainer
    github.com/reduxjs/redux-thunk/blob/master/LICENSE.md
  5. 2026-11-16: First release
    github.com/reduxjs/redux-thunk/releases/tag/v0.1.0
  6. 2026-11-16: Current major version, Last release
    github.com/reduxjs/redux-thunk/releases/tag/v3.1.0
  7. 2026-11-16: Contributors
    api.github.com/repos/reduxjs/redux-thunk/contributors?per_page=1
  8. 2026-11-16: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/redux-thunk
  9. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/redux-thunk

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON