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 |
Redux アプリケーションでジェネレーターベースの副作用ミドルウェアを構築、テスト、デバッグするための Redux-Saga のベスト プラクティス、パターン、および API ガイダンス。エフェクト クリエーター、フォーク モデル、チャネル、redux-saga-test-plan によるテスト、同時実行性、キャンセル、最新の Redux Toolkit 統合について説明します。ベースライン: redux-saga 1.4.2。トリガー: saga ファイル、redux-saga インポート、ジェネレーターベースのミドルウェア、「saga」、「takeEvery」、「takelatest」、「fork モデル」、または「チャネル」の言及。 ソース: anivar/redux-saga-skill。