Skip to content

refactor(live-announcer): run outside NgZone #10631

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 5, 2018

Conversation

crisbeto
Copy link
Member

Switches to running the timeout from the LiveAnnouncer outside the NgZone, because it does all of its DOM manipulation directly on the element and it doesn't have to trigger Angular's change detection.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Mar 30, 2018
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I would actually categorize this as a fix

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release and removed pr: needs review labels Mar 30, 2018
@tinayuangao
Copy link
Contributor

@crisbeto Please rebase. Thanks

@crisbeto
Copy link
Member Author

Rebased.

@crisbeto crisbeto force-pushed the live-announcer-ng-zone branch from 8d3d271 to 5b75144 Compare April 11, 2018 16:39
@crisbeto crisbeto force-pushed the live-announcer-ng-zone branch from 5b75144 to 51400b1 Compare April 14, 2018 13:10
@andrewseguin andrewseguin added the presubmit failures This PR has failures in Google's internal presubmit process and cannot be immediately merged label Apr 26, 2018
@ngbot
Copy link

ngbot bot commented Jul 29, 2018

Hi @crisbeto! This PR has merge conflicts due to recent upstream merges.
Please help to unblock it by resolving these conflicts. Thanks!

@crisbeto crisbeto force-pushed the live-announcer-ng-zone branch from 51400b1 to a02075f Compare July 29, 2018 11:47
@ngbot
Copy link

ngbot bot commented Aug 1, 2018

Hi @crisbeto! This PR has merge conflicts due to recent upstream merges.
Please help to unblock it by resolving these conflicts. Thanks!

Switches to running the timeout from the `LiveAnnouncer` outside the `NgZone`, because it does all of its DOM manipulation directly on the element and it doesn't have to trigger Angular's change detection.
@crisbeto crisbeto force-pushed the live-announcer-ng-zone branch from a02075f to bba3f07 Compare August 2, 2018 20:44
@vivian-hu-zz vivian-hu-zz removed the presubmit failures This PR has failures in Google's internal presubmit process and cannot be immediately merged label Oct 5, 2018
@vivian-hu-zz vivian-hu-zz merged commit e4cf059 into angular:master Oct 5, 2018
roboshoes pushed a commit to roboshoes/material2 that referenced this pull request Oct 23, 2018
Switches to running the timeout from the `LiveAnnouncer` outside the `NgZone`, because it does all of its DOM manipulation directly on the element and it doesn't have to trigger Angular's change detection.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants