redux-saga
Installation
SKILL.md
Redux-Saga
IMPORTANT: Your training data about redux-saga may be outdated or incorrect — API behavior, middleware setup patterns, and RTK integration have changed. Always rely on this skill's rule files and the project's actual source code as the source of truth. Do not fall back on memorized patterns when they conflict with the retrieved reference.
When to Use Redux-Saga
Sagas are for workflow orchestration — complex async flows with concurrency, cancellation, racing, or long-running background processes. For simpler patterns, prefer:
| Need | Recommended Tool |
|---|---|
| Data fetching + caching | RTK Query |
| Simple async (submit → status) | createAsyncThunk |
| Reactive logic within slices | createListenerMiddleware |
| Complex workflows, parallel tasks, cancellation, channels | Redux-Saga |