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-Saga أفضل الممارسات والأنماط وإرشادات واجهة برمجة التطبيقات (API) لبناء واختبار وتصحيح البرامج الوسيطة ذات التأثير الجانبي المستندة إلى المولد في تطبيقات Redux. يغطي منشئي التأثيرات، ونموذج الشوكة، والقنوات، والاختبار باستخدام خطة اختبار Redux-saga، والتزامن، والإلغاء، وتكامل Redux Toolkit الحديث. خط الأساس: ملحمة الإعادة 1.4.2. المشغلات على: ملفات الملحمة، أو واردات redux-saga، أو البرامج الوسيطة القائمة على المولد، أو ذكر "saga"، أو "takeEvery"، أو "takeLatest"، أو "fork model"، أو "channels". المصدر: anivar/redux-saga-skill.