CodeZettaInterview Hub

Angular · Change Detection · Junior · Debugging

Why can mutating an @Input object fail to update an OnPush child?

Short Interview Answer

OnPush compares input references; in-place mutation keeps the same reference.

Detailed Explanation

Clone/update immutably or call markForCheck. Prefer signals which notify dependents on set.

Did you know this answer?