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.
Sagas are for workflow orchestration — complex async flows with concurrency, cancellation, racing, or long-running background processes. For simpler patterns, prefer:
| Data fetching + caching | RTK Query | | Simple async (submit → status) | createAsyncThunk | | Reactive logic within slices | createListenerMiddleware | | Complex workflows, parallel tasks, cancellation, channels | Redux-Saga |
Best Practices, Muster und API-Anleitungen von Redux-Saga zum Erstellen, Testen und Debuggen von Generator-basierter Nebeneffekt-Middleware in Redux-Anwendungen. Behandelt Effektersteller, Fork-Modell, Kanäle, Tests mit Redux-Saga-Test-Plan, Parallelität, Stornierung und moderne Redux Toolkit-Integration. Basis: Redux-Saga 1.4.2. Wird ausgelöst durch: Saga-Dateien, Redux-Saga-Importe, Generator-basierte Middleware, Erwähnungen von „saga“, „takeEvery“, „takeLatest“, „fork model“ oder „channels“. Quelle: anivar/redux-saga-skill.