redux-saga VS redux-saga-thunk

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

redux-saga

An alternative side effect model for Redux apps [Moved to: https://github.com/redux-saga/redux-saga] (by yelouafi)

redux-saga-thunk

Dispatching an action handled by redux-saga returns promise (by diegohaz)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
redux-saga redux-saga-thunk
3 1
22,112 222
- -
4.6 0.0
about 2 years ago over 1 year ago
JavaScript JavaScript
GNU General Public License v3.0 or later MIT License
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

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:

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.

What are some alternatives?

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

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

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-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]

redux-logger - Logger for Redux

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