AntiPattern
Stale State Closure Updates
stale-closure-and-state-shape-mismatch
State updates fail to reflect the latest values because callbacks and reducers capture outdated state (via closures) or operate on mismatched state shapes, so change detection and derived fields like lastModifiedAt/counter become unreliable.