YUNOVA · Angular · Module 11: Performance and rendering
OnPush change detection strategy
OnPush change detection strategy
Key points
- OnPush checks a component only when its inputs change by reference.
- Events, async pipe and signals also mark an OnPush component for checking.
- Use immutable updates so new references trigger detection.