Need advice about which tool to choose?Ask the StackShare community!

redux-saga

366
292
+ 1
8
redux-thunk

202
143
+ 1
6
Add tool

redux-saga vs redux-thunk: What are the differences?

redux-saga: An alternative side effect model for Redux apps. An alternative side effect model for Redux apps; redux-thunk: Thunk middleware for Redux. 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 and redux-thunk belong to "State Management Library" category of the tech stack.

redux-saga and redux-thunk are both open source tools. It seems that redux-saga with 18.2K GitHub stars and 1.59K forks on GitHub has more adoption than redux-thunk with 12.6K GitHub stars and 682 GitHub forks.

According to the StackShare community, redux-saga has a broader approval, being mentioned in 43 company stacks & 21 developers stacks; compared to redux-thunk, which is listed in 10 company stacks and 19 developer stacks.

Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of redux-saga
Pros of redux-thunk
  • 7
    Easy to test
  • 1
    Easy to learn
  • 6
    Easy

Sign up to add or upvote prosMake informed product decisions

What is redux-saga?

An alternative side effect model for Redux apps

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.

Need advice about which tool to choose?Ask the StackShare community!

What companies use redux-saga?
What companies use redux-thunk?
See which teams inside your own company are using redux-saga or redux-thunk.
Sign up for Private StackShareLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with redux-saga?
What tools integrate with redux-thunk?
What are some alternatives to redux-saga and redux-thunk?
GraphQL
GraphQL is a data query language and runtime designed and used at Facebook to request and deliver data to mobile and web apps since 2012.
MobX
MobX is a battle tested library that makes state management simple and scalable by transparently applying functional reactive programming (TFRP). React and MobX together are a powerful combination. React renders the application state by providing mechanisms to translate it into a tree of renderable components. MobX provides the mechanism to store and update the application state that React then uses.
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