redux-saga-thunk VS redux-saga

Compare redux-saga-thunk vs redux-saga and see what are their differences.

redux-saga-thunk

Dispatching an action handled by redux-saga returns promise (by diegohaz)

redux-saga

An alternative side effect model for Redux apps [Moved to: https://github.com/redux-saga/redux-saga] (by yelouafi)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
redux-saga-thunk redux-saga
1 3
222 22,112
- -
0.0 4.6
over 1 year ago about 2 years ago
JavaScript JavaScript
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

redux-saga-thunk

Posts with mentions or reviews of redux-saga-thunk. We have used some of these posts to build our list of alternatives and similar projects.
  • It is possible to await redux saga from component
    1 project | /r/reactjs | 1 Jun 2021
    There are some hacky workarounds, such as putting a callback in the action object itself, and having the saga run that callback. That should be avoided, though. There are at least a couple packages that implement something that may work a bit better, like https://www.npmjs.com/package/@adobe/redux-saga-promise and https://github.com/diegohaz/redux-saga-thunk , but I haven't tried them.

redux-saga

Posts with mentions or reviews of redux-saga. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-26.
  • Why use Redux-Observable over Redux-Saga?
    2 projects | /r/codehunter | 26 Mar 2022
    I have used Redux-Saga. Code written with it is easy to reason so far, except JS generator function is messing up my head from time to time. From my understanding, Redux-Observable can achieve the similar job that handles side effects but without using generator function.
  • How to test API request failures with Redux Saga?
    1 project | /r/codehunter | 21 Mar 2022
    I looked for an example, i found sagas with success and fail but the fail case is never tested, for example in the shopping cart example here
  • What are selectors in redux?
    1 project | /r/codehunter | 13 Mar 2022
    export const getUser = (state, login) => state.entities.users[login]export const getRepo = (state, fullName) => state.entities.repos[fullName] Which is then used in the saga like this:

What are some alternatives?

When comparing redux-saga-thunk and redux-saga you can also consider the following projects:

redux-persist - persist and rehydrate a redux store

redux-observable - RxJS middleware for action side effects in Redux using "Epics"

redux-axios-middleware - Redux middleware for fetching data with axios HTTP client

kea - Batteries Included State Management for React

redux-logger - Logger for Redux

redux-saga - An alternative side effect model for Redux apps

redux-selector - React Redux & Selector Example

react-boilerplate - :fire: A highly scalable, offline-first foundation with the best developer experience and a focus on performance and best practices. [Moved to: https://github.com/react-boilerplate/react-boilerplate]

Fakeflix - Not the usual clone that you can find on the web.