AntiPattern
Stale Closures and Mount Loops
stale-closure-remount-loop
Event listeners, effects, or conditional mounts capture outdated state or re-trigger each other, so handlers refire with stale values or remount continuously. Tests and subscriptions can further mask or amplify the resulting inconsistent behavior.