mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
b8f80ab2dc
This refactor removes the unnecessary `runOutsideAngular` call in the view transition helper. The resolved promise re-enters the zone in the transition, so that will trigger the Angular zone anyways. If it didn't do that, it risks activated the route outside the zone, which is a bigger risk. Regardless, this function is only run once per navigation, so even if it _did_ result in an extra promise/timeout inside the zone, this is not excessive. Using ZoneJS to trigger rendering is known to overreact to events. Using `OnPush` or zoneless is more effective at mitigating this issue. PR Close #61068
Angular
The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.
Usage information and reference details can be found in Angular documentation.
License: MIT