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 practice, modelli e linee guida API di Redux-Saga per la creazione, il test e il debug di middleware con effetti collaterali basato su generatore nelle applicazioni Redux. Copre creatori di effetti, modello di fork, canali, test con redux-saga-test-plan, concorrenza, cancellazione e integrazione moderna di Redux Toolkit. Base: redux-saga 1.4.2. Si attiva su: file saga, importazioni redux-saga, middleware basato su generatori, menzioni di "saga", "takeEvery", "takeLatest", "modello fork" o "canali". Fonte: anivar/redux-saga-skill.