Pattern

Stale State in Closures

stale-state-captured-closures

Closures and partial setters capture or mutate the wrong snapshot of state, so UI handlers and save/change-detection logic observe outdated values after async actions, middleware, or incorrect set references.