mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
59c7538f0c
PR #55099 updated zoneless behavior to treat all views attached to `ApplicationRef` as `OnPush`. Put another way, Zoneless change detection will only refresh view trees that notified Angular of a change. This generally works as expected but there was one situation where it did not. Some views are logically linked to their declaration locations and should refresh when the declaration refreshes. These views are called "transplanted views" and work correctly when inserted into another view container. This change updates the logic to also work when they are attached directly to `ApplicationRef`. PR Close #55154