mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
478c5ac150
This commit implements a simple tracker of the pending tasks during initial rendering. The class allows adding and removing tasks from the set. The class also exposes a promise that gets resolved once the last task is removed. This tracker is needed to keep track of ongoing processes like Router navigation (and potentially HTTP requests) and acts as a signaling mechanism to SSR and hydration that the application is in the "stable" state and a serialization can be performed. This class would also act as a future replacement for the `ApplicationRef.isStable` for zoneless applications. PR Close #49576
1.2 KiB
1.2 KiB