88
39
+ 1
0

What is redux-thunk?

Redux Thunk middleware allows you to write action creators that return a function instead of an action. The thunk can be used to delay the dispatch of an action, or to dispatch only if a certain condition is met. The inner function receives the store methods dispatch and getState as parameters.
redux-thunk is a tool in the State Management Library category of a tech stack.
redux-thunk is an open source tool with 13.1K GitHub stars and 728 GitHub forks. Here’s a link to redux-thunk's open source repository on GitHub

Who uses redux-thunk?

Companies
18 companies reportedly use redux-thunk in their tech stacks, including Web, LendingHome, and Gogo.

Developers
63 developers on StackShare have stated that they use redux-thunk.

redux-thunk Integrations

Why developers like redux-thunk?

Here’s a list of reasons why companies and developers use redux-thunk
Top Reasons
Be the first to leave a pro
redux-thunk Reviews

Here are some stack decisions, common use cases and reviews by companies and developers who chose redux-thunk in their tech stack.

Jest
Jest
redux-thunk
redux-thunk
React
React
Redux
Redux
redux-saga
redux-saga

Choosing redux-saga for my async Redux.js middleware, for a React application, instead of the typical redux-thunk .

Redux-saga is much easier to test than Redux-thunk - it requires no module mocking at all. Converting from redux-thunk to redux-saga is easy enough, as you are only refactoring the action creators - not your redux store or your react components. I've linked a github repo that shows the same solution with both, including Jest tests.

See more
Redux
Redux
redux-thunk
redux-thunk
redux-saga
redux-saga
React
React
#Redux-saga

For async requests in React I use redux-saga , to my opinion it is the most organized framework for async requests, it is clearer then redux-thunk and conforms to the style of Redux.js which results in a more structured project, especially in large web applications. #redux-saga

See more

redux-thunk Alternatives & Comparisons

What are some alternatives to redux-thunk?
redux-thunk
Redux Thunk middleware allows you to write action creators that return a function instead of an action. The thunk can be used to delay the dispatch of an action, or to dispatch only if a certain condition is met. The inner function receives the store methods dispatch and getState as parameters.
redux-saga
An alternative side effect model for Redux apps
Redux Observable
It allows developers to dispatch a function that returns an observable, promise or iterable of action(s). Compose and cancel async actions to create side effects and more.
Redux
It helps you write applications that behave consistently, run in different environments (client, server, and native), and are easy to test. t provides a great experience, such as live code editing combined with a time traveling debugger.
vuex
Vuex is a state management pattern + library for Vue.js applications. It serves as a centralized store for all the components in an application, with rules ensuring that the state can only be mutated in a predictable fashion. It also integrates with Vue's official devtools extension to provide advanced features such as zero-config time-travel debugging and state snapshot export / import.
See all alternatives

redux-thunk's Stats

redux-thunk's Followers
39 developers follow redux-thunk to keep up with related blogs and decisions.
sagar-ranglani
Michel Ho
KIM, WOOJUNG
carsimoes
pipusana petgumpoom
Francisco Pizarro
Mohamma76685757
Aziz Gharbi
Milad Atef
Syed Ibrahim