# reduxjs/redux-thunk

Thunk middleware for Redux

Repository: https://github.com/reduxjs/redux-thunk
Canonical: https://ross.abutalabs.com/products/redux-thunk
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2025-03-16T00:36:10+00:00

## Health v2 (maintenance only)
Score: 28/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 11, release rhythm 8, longevity 100
- inputs: {"age_days": 4069, "days_push": 536, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 17678, forks 1017 (observed 2026-08-28T04:11:20.169409+00:00)

## What it is
Redux Thunk is the official thunk middleware for Redux that lets you write action creator functions containing logic which can interact with the store's dispatch and getState methods. It is included by default in Redux Toolkit and can be added manually to a classic Redux store via applyMiddleware.

## Use cases
- dispatch async actions like API fetches from Redux
- access current state inside action creators
- inject a custom API service argument into thunks for testing
- conditionally dispatch multiple actions based on state
- write reusable logic functions that interact with the Redux store

## When to choose
- you use Redux and need to handle async logic or side effects in action creators
- you use Redux Toolkit, which bundles this middleware by default
- you want a tiny, battle-tested middleware with a simple function-based pattern

## When to avoid
- you use Redux Toolkit's createAsyncThunk or RTK Query for data fetching
- you use a state management library with built-in async support like Zustand or MobX
- you need more powerful effect handling such as sagas or observables

## Facets
- artifact type: library
- maturity: stable
- function: middleware, state-management
- domain: frontend, web-development, developer-tools
- platform: browser, cross-platform
- tags: redux, thunk, async-actions, side-effects, typescript, nodejs

## Member repositories
- reduxjs/redux-thunk (main) score 28

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:20.169409+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:02:31.581625+00:00, confidence not recorded.
  - readme: https://github.com/reduxjs/redux-thunk (fetched 2026-08-28T04:11:20.169409+00:00, sha f6cf299c58f5)
  - registry_npm: https://registry.npmjs.org/redux-thunk (fetched 2026-08-29T08:00:58.494419+00:00, sha fb7496d234e7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
