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
Rendering and deploy
- Install with
- npm3
Releases
Adoption
Sources
- 2026-11-16: links, Written in, License, GitHub stars
api.github.com/repos/reduxjs/redux-thunk - 2026-11-16: links
redux.js.org/usage/writing-logic-thunks - 2026-11-16: Categories, Built on, Install with
github.com/reduxjs/redux-thunk/blob/master/README.md - 2026-11-16: Maintainer
github.com/reduxjs/redux-thunk/blob/master/LICENSE.md - 2026-11-16: First release
github.com/reduxjs/redux-thunk/releases/tag/v0.1.0 - 2026-11-16: Current major version, Last release
github.com/reduxjs/redux-thunk/releases/tag/v3.1.0 - 2026-11-16: Contributors
api.github.com/repos/reduxjs/redux-thunk/contributors?per_page=1 - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/redux-thunk - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/redux-thunk