{"meta":{"name":"FindSoftware","page":"https://findsoftware.frbit.cloud/redux-thunk/","markdown":"https://findsoftware.frbit.cloud/redux-thunk.md","license":"https://creativecommons.org/licenses/by/4.0/","attribution":"FindSoftware, CC BY 4.0","note":"Attributes are recorded, never scored. An absent field means unknown, never zero and never bad."},"record":{"id":"redux-thunk","name":"Redux Thunk","urls":{"repository":"https://github.com/reduxjs/redux-thunk","docs":"https://redux.js.org/usage/writing-logic-thunks"},"category":["library"],"description":"Redux middleware that lets action creators return functions, which can dispatch actions and read the store state.","maintainer":"Dan Abramov","firstRelease":2015,"language":"javascript","basedOn":["redux"],"contentStore":null,"databases":null,"adminUi":null,"headlessApi":null,"templating":null,"i18n":null,"runsAs":null,"renderingModes":null,"installMethod":"npm","licenseModel":"open-source","license":"MIT","currentMajor":"3","latestReleaseDate":"2023-12-04T00:00:00.000Z","githubStargazers":17654,"contributors":49,"packagistDownloads":null,"npmWeeklyDownloads":49830643,"dependentRepos":591408,"dependentPackages":7365,"checkedAt":"2026-11-16T00:00:00.000Z","addedAt":"2026-11-16T00:00:00.000Z","sources":[{"field":"urls","url":"https://api.github.com/repos/reduxjs/redux-thunk","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"urls","url":"https://redux.js.org/usage/writing-logic-thunks","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"category","url":"https://github.com/reduxjs/redux-thunk/blob/master/README.md","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"language","url":"https://api.github.com/repos/reduxjs/redux-thunk","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"basedOn","url":"https://github.com/reduxjs/redux-thunk/blob/master/README.md","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"installMethod","url":"https://github.com/reduxjs/redux-thunk/blob/master/README.md","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"license","url":"https://api.github.com/repos/reduxjs/redux-thunk","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"maintainer","url":"https://github.com/reduxjs/redux-thunk/blob/master/LICENSE.md","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"firstRelease","url":"https://github.com/reduxjs/redux-thunk/releases/tag/v0.1.0","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"currentMajor","url":"https://github.com/reduxjs/redux-thunk/releases/tag/v3.1.0","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"latestReleaseDate","url":"https://github.com/reduxjs/redux-thunk/releases/tag/v3.1.0","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"githubStargazers","url":"https://api.github.com/repos/reduxjs/redux-thunk","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"contributors","url":"https://api.github.com/repos/reduxjs/redux-thunk/contributors?per_page=1","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"npmWeeklyDownloads","url":"https://api.npmjs.org/downloads/range/2026-11-01:2026-11-07/redux-thunk","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"dependentPackages","url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/redux-thunk","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"dependentRepos","url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/redux-thunk","checkedAt":"2026-11-16T00:00:00.000Z"}],"status":"active","ai":"authored"},"prose":"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](https://redux.js.org/usage/writing-logic-thunks) describes the pattern in more detail.\n\nWith Redux's `createStore`, the middleware is installed through `applyMiddleware`. Redux Toolkit's `configureStore` adds it by default.\n\n## Worth knowing\n\nThe thunk middleware is not part of the Redux core library, so a store set up by hand needs the package added."}