Skip to main content

effect-xray-refactor

Tool-grounded, behavior-preserving refactor of unnecessary useEffects in React/TSX, using effect-xray to map each effect's wiring before touching it. Reach for this when auditing or removing useEffect hooks in a large or unfamiliar component — where the same state is set in several places and a naive "convert to a derived value" would silently break a handler or drop data, or when you want the removal verified rather than eyeballed. Most useful when an effect's wiring isn't obvious from a quick read; for a single, plainly-derived effect in a small file, a direct edit is fine and you can skip this. It runs effect-xray, triages each effect off the blueprint (including where else the setter is driven), picks the right replacement, and changes one effect at a time with verification — never batch-ripping, never guessing intent the code doesn't state.

Aller à l'installation

Informations de source

Dépôt
cbcruk/effect-evidence
Dernière activité de la source
22 juillet 2026 à 03:15
Langue détectée de SKILL.md
anglais
Étoiles
0
Forks
0

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.