-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perform skyhookZone's change detection in the angular zone, and not j…
…ust for microtasks Before, it used ApplicationRef.tick() from when skyhookZone's microTaskQueue was empty. Now, it switches back to angular via ngZone.run() and the associated onLeave handler, but also on macroTasks. This means if we set up timers in the skyhook zone, they will fire and cause change detection. Useful if doing .listen(...).delay(1000) and the resulting asynchronous subscribers. Appropriately, we run more setup handlers in skyhookZone now. Proper event handlers (set up by the backend) don't trigger any directly, because skyhookZone only cares about # of evt handlers changing => 0. But if we care about them, it will be through listen(), updates to which will schedule a microTask.
- Loading branch information
1 parent
5a28c31
commit a5ec191
Showing
7 changed files
with
97 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters