Editorial question17.1K views2,892 votes0 answers1,372 following
AI-generatedCan OnPush cause stale UI when mutating @Input objects?
Goal Determine how Angular’s OnPush change‑detection strategy can lead to a component’s view not reflecting state changes when the parent mutates an @Input object without changing its reference. Constraints & Uncertainty OnPush only runs change detection when a reference‐changing input, a component event, or an async pipe emits. In-place mutations (e.g.,