This reverts commit 7e89753eeff24f52d39fef92600293bf1700cd1b.
Running render hooks inside the zone is specifically problematic for afterRender hooks. If the callback has async task, it would cause an infinite change detection. In addition, updating state in render hooks is generally discourages and certainly should update state in a way that notifies Angular of the change (either via signal or with markForCheck) rather than relying on ZoneJS to pick it up (which would only work if the change is done inside an async task).
…he Angular zone (#55399)"
This reverts commit 7e89753eeff24f52d39fef92600293bf1700cd1b.
Running render hooks inside the zone is specifically problematic for
afterRender
hooks. If the callback has async task, it would cause an infinite change detection. In addition, updating state in render hooks is generally discourages and certainly should update state in a way that notifies Angular of the change (either via signal or withmarkForCheck
) rather than relying on ZoneJS to pick it up (which would only work if the change is done inside an async task).