useeffect-dependencies
Installation
SKILL.md
useEffect Dependency Fixer
Phase 1 — Diagnose Before Touching Anything
Identify the actual bug category before suggesting any fix. Most mistakes come from misdiagnosing the category.
| Symptom | Likely Category |
|---|---|
| ESLint error, effect works fine | Missing dep that happens to be stable |
| Infinite re-render loop | Object/function dep recreated on every render |
| Stale value read inside effect | Closure captures old binding |
| Effect never re-runs when it should | Dep omitted or effect has wrong placement |
useCallback chain grew just to satisfy deps |
Stabilization needed, not suppression |