-
Notifications
You must be signed in to change notification settings - Fork 25.5k
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
fix(core): ComponentFixture autoDetect feature works like production #55228
Closed
atscott
wants to merge
1
commit into
angular:main
from
atscott:componentfixtureautodetect_saneVersion
Closed
fix(core): ComponentFixture autoDetect feature works like production #55228
atscott
wants to merge
1
commit into
angular:main
from
atscott:componentfixtureautodetect_saneVersion
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
angular-robot
bot
added
the
detected: breaking change
PR contains a commit with a breaking change
label
Apr 5, 2024
atscott
force-pushed
the
componentfixtureautodetect_saneVersion
branch
4 times, most recently
from
April 6, 2024 15:05
61c7250
to
7ce2963
Compare
pkozlowski-opensource
added
the
area: core
Issues related to the framework runtime
label
Apr 11, 2024
atscott
force-pushed
the
componentfixtureautodetect_saneVersion
branch
2 times, most recently
from
July 29, 2024 23:04
c760b3a
to
c6d5a61
Compare
atscott
force-pushed
the
componentfixtureautodetect_saneVersion
branch
from
August 8, 2024 19:51
c6d5a61
to
1cafc90
Compare
atscott
added
the
action: global presubmit
The PR is in need of a google3 global presubmit
label
Aug 8, 2024
atscott
force-pushed
the
componentfixtureautodetect_saneVersion
branch
from
August 8, 2024 19:53
1cafc90
to
eb08ef7
Compare
atscott
force-pushed
the
componentfixtureautodetect_saneVersion
branch
3 times, most recently
from
August 12, 2024 19:26
a5f5cfc
to
7419fa1
Compare
alxhub
approved these changes
Aug 13, 2024
This commit fully integrates the `autoDetect` feature into `ApplicationRef.tick` without special handling for errors. This commit also shares the method of autoDetect for change detection between the zoneless and zone component fixture implementations. The difference is now limited to: * autoDetect is defaulted to true with zoneless * detectChanges with zoneless is AppRef.tick while it is ChangeDetectorRef.detectChanges with zones. This should likely converge more in the future. Not going through AppRef.tick means that the zone fixture does not get guaranteed `afterRender` executions and does not get the rerunning behavior if the fixture is marked dirty by a render hook. BREAKING CHANGE: The `autoDetect` feature of `ComponentFixture` will now attach the fixture to the `ApplicationRef`. As a result, errors during automatic change detection of the fixture be reported to the `ErrorHandler`. This change may cause custom error handlers to observe new failures that were previously unreported.
atscott
force-pushed
the
componentfixtureautodetect_saneVersion
branch
from
August 15, 2024 18:43
7419fa1
to
f4195f4
Compare
atscott
added
action: merge
The PR is ready for merge by the caretaker
and removed
action: global presubmit
The PR is in need of a google3 global presubmit
labels
Aug 15, 2024
This PR was merged into the repository by commit f03d274. The changes were merged into the following branches: main |
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. |
and-oli
pushed a commit
to and-oli/angular
that referenced
this pull request
Sep 30, 2024
…ngular#55228) This commit fully integrates the `autoDetect` feature into `ApplicationRef.tick` without special handling for errors. This commit also shares the method of autoDetect for change detection between the zoneless and zone component fixture implementations. The difference is now limited to: * autoDetect is defaulted to true with zoneless * detectChanges with zoneless is AppRef.tick while it is ChangeDetectorRef.detectChanges with zones. This should likely converge more in the future. Not going through AppRef.tick means that the zone fixture does not get guaranteed `afterRender` executions and does not get the rerunning behavior if the fixture is marked dirty by a render hook. BREAKING CHANGE: The `autoDetect` feature of `ComponentFixture` will now attach the fixture to the `ApplicationRef`. As a result, errors during automatic change detection of the fixture be reported to the `ErrorHandler`. This change may cause custom error handlers to observe new failures that were previously unreported. PR Close angular#55228
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
area: core
Issues related to the framework runtime
detected: breaking change
PR contains a commit with a breaking change
target: major
This PR is targeted for the next major 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 commit fully integrates the
autoDetect
feature intoApplicationRef.tick
without special handling for errors.BREAKING CHANGE: The
autoDetect
feature ofComponentFixture
will now report errors to theErrorHandler
. Previously, these errors were thrown in asetTimeout
. The default behavior ofErrorHandler
is to simply log the error to console. This change may cause custom error handlers to observe new failures that were previously unreported.