-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
perf(cdk/a11y): avoid triggering change detection if there are no subscribers to stream #15077
Merged
crisbeto
merged 1 commit into
angular:master
from
crisbeto:focus-monitor-change-detection-again
Mar 17, 2022
Merged
perf(cdk/a11y): avoid triggering change detection if there are no subscribers to stream #15077
crisbeto
merged 1 commit into
angular:master
from
crisbeto:focus-monitor-change-detection-again
Mar 17, 2022
Conversation
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
crisbeto
added
merge: caretaker note
Alert the caretaker performing the merge to check the PR for an out of normal action needed or note
target: minor
This PR is targeted for the next minor release
labels
Feb 4, 2019
googlebot
added
the
cla: yes
PR author has agreed to Google's Contributor License Agreement
label
Feb 4, 2019
crisbeto
added
the
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
label
Aug 18, 2019
crisbeto
force-pushed
the
focus-monitor-change-detection-again
branch
from
August 18, 2019 20:19
bb3ff4d
to
d5ca30d
Compare
crisbeto
force-pushed
the
focus-monitor-change-detection-again
branch
from
May 9, 2020 14:31
d5ca30d
to
6b96ee6
Compare
crisbeto
force-pushed
the
focus-monitor-change-detection-again
branch
from
December 25, 2020 14:52
6b96ee6
to
f3ce4d8
Compare
crisbeto
changed the title
perf(focus-monitor): avoid triggering change detection if there are no subscribers to stream
perf(cdk/a11y): avoid triggering change detection if there are no subscribers to stream
Dec 25, 2020
crisbeto
force-pushed
the
focus-monitor-change-detection-again
branch
from
May 7, 2021 06:06
f3ce4d8
to
cac70ac
Compare
andrewseguin
added
needs rebase
and removed
cla: yes
PR author has agreed to Google's Contributor License Agreement
labels
Dec 29, 2021
…scribers to stream Currently we have an `NgZone.run` call on each `focus` and `blur` event of a monitored event in order to bring its subscribers into the `NgZone`, however this means that we're also triggering change detection to any consumers that aren't subscribed to changes (e.g. `mat-button` only cares about the classes being applied). These changes move around some logic so that the `NgZone.run` is only hit if somebody has subscribed to the observable.
crisbeto
force-pushed
the
focus-monitor-change-detection-again
branch
from
March 16, 2022 05:59
cac70ac
to
81c4c97
Compare
1 task
forsti0506
pushed a commit
to forsti0506/components
that referenced
this pull request
Apr 3, 2022
…scribers to stream (angular#15077) Currently we have an `NgZone.run` call on each `focus` and `blur` event of a monitored event in order to bring its subscribers into the `NgZone`, however this means that we're also triggering change detection to any consumers that aren't subscribed to changes (e.g. `mat-button` only cares about the classes being applied). These changes move around some logic so that the `NgZone.run` is only hit if somebody has subscribed to the observable.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
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
merge: caretaker note
Alert the caretaker performing the merge to check the PR for an out of normal action needed or note
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
target: minor
This PR is targeted for the next minor release
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a resubmit of #14964.
Currently we have an
NgZone.run
call on eachfocus
andblur
event of a monitored event in order to bring its subscribers into theNgZone
, however this means that we're also triggering change detection to any consumers that aren't subscribed to changes (e.g.mat-button
only cares about the classes being applied). These changes move around some logic so that theNgZone.run
is only hit if somebody has subscribed to the observable.Caretaker note: this PR had to be reverted before (#15076) because there was an app that depended on the extra change detections. We may have to investigate further before we can merge this in again.