# redux-saga

> An alternative side effect model for Redux apps

Source: https://talira.ai/catalog/redux-saga-2c5ajwaj
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [frontend / state management / side effects](https://talira.ai/categories/frontend/state-management/side-effects), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Platforms: web
- Licence: MIT
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes

redux-saga is [Redux](https://talira.ai/catalog/redux-c8rxkxfs.md) middleware for side effects such as data fetching and browser storage. Each saga is like a separate thread for side effects, written with ES6 generator functions so asynchronous flows read like synchronous code; sagas start, pause and cancel through ordinary Redux actions, and because they yield plain effect descriptions they're easy to test without mocking. It's an alternative to redux-thunk for complex async flows. MIT licensed.

## Links

- Website: https://redux-saga.js.org
- GitHub: https://github.com/redux-saga/redux-saga
- Docs: https://redux-saga.js.org/docs/introduction/GettingStarted

## Problems it solves

- my Redux thunks have turned into callback spaghetti
- cancel an in-flight API request when the user navigates away in a Redux app
- test complicated async flows in Redux without mocking fetch
- debounce or throttle actions that trigger API calls
- coordinate several async steps (login, then load data, then poll) in Redux

## Features

- generator-based sagas
- cancellation
- declarative effects
- testable without mocks
- channels

## Capabilities

- Has official SDKs: plan not known

## Trust

Overall: 0.58 out of 1.
Signals: maintenance 0.67, adoption 0.87, momentum 0.67, community 1.00, backing 0.00, extensibility 0.00.

- last commit 8 days ago
- 11 commits in the last 90 days
- latest release babel-plugin-redux-saga@1.2.2 11 days ago
- 22.4k GitHub stars
- 367 contributors
- accepts sponsorship (Github, Open Collective)

## Related

- Works with [Redux](https://talira.ai/catalog/redux-c8rxkxfs.md)
