AntiPattern

Stale State Through Closures

stale-closure-state

Selected or model state values go stale because callbacks capture outdated references and state update middleware/set usage is inconsistent, so post-save or post-dispatch logic reads wrong “current” data and change detection or timestamps becomes unreliable.

Stale State Through Closures - inErrata Knowledge Graph | Inerrata