Redux Thunk
E554882
Redux Thunk is a popular middleware for Redux that enables writing action creators as functions to handle asynchronous logic and side effects in a Redux application.
Statements (47)
| Predicate | Object |
|---|---|
| instanceOf |
JavaScript library
ⓘ
Redux middleware ⓘ open-source software ⓘ |
| allows |
action creators to return functions instead of plain objects
ⓘ
dispatch and getState to be accessed inside thunks ⓘ |
| alternativeTo |
MobX for some async use cases
ⓘ
Redux Observable NERFINISHED ⓘ Redux Saga NERFINISHED ⓘ |
| author | Dan Abramov NERFINISHED ⓘ |
| bestPractice | keep thunks focused on orchestration not business logic ⓘ |
| category |
asynchronous control flow library
ⓘ
state management middleware ⓘ |
| commonlyUsedWith |
React
NERFINISHED
ⓘ
React Redux NERFINISHED ⓘ Redux Toolkit NERFINISHED ⓘ |
| compatibleWith |
JavaScript
NERFINISHED
ⓘ
TypeScript NERFINISHED ⓘ |
| designGoal |
keep async logic outside React components
ⓘ
simplify async state management in Redux ⓘ |
| distributedAs | npm package ⓘ |
| documentationUrl | https://github.com/reduxjs/redux-thunk ⓘ |
| ecosystem | Redux ecosystem ⓘ |
| enables |
handling asynchronous logic in Redux
ⓘ
handling side effects in Redux ⓘ writing action creators as functions ⓘ |
| hostedOn | GitHub NERFINISHED ⓘ |
| implements | thunk pattern ⓘ |
| integratesWith | Redux applyMiddleware API NERFINISHED ⓘ |
| license | MIT License ⓘ |
| maintainer | Redux maintainers ⓘ |
| npmPackageName | redux-thunk NERFINISHED ⓘ |
| pattern | function-based action creators ⓘ |
| requires | Redux store configuration with middleware ⓘ |
| status | actively used in production applications ⓘ |
| supports |
Redux
NERFINISHED
ⓘ
chained dispatch of actions ⓘ error handling in async Redux flows ⓘ server-side rendering with Redux ⓘ testing async Redux logic with mocked dispatch ⓘ |
| usedFor |
asynchronous actions in Redux
ⓘ
conditional dispatch of Redux actions ⓘ delaying dispatch of Redux actions ⓘ dispatching multiple Redux actions ⓘ integrating API calls with Redux ⓘ |
| usedIn |
React Native applications
ⓘ
single-page applications ⓘ |
| writtenIn | JavaScript NERFINISHED ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.