Skip to content

Conversation

@arturovt
Copy link
Contributor

@arturovt arturovt commented Jan 29, 2025

In this commit, we check whether the application is destroyed before initializing event replay. The application may be destroyed before it becomes stable, so when the whenStable resolves, the injector might already be in a destroyed state. As a result, calling injector.get would throw an error indicating that the injector has already been destroyed.

@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label Jan 29, 2025
@ngbot ngbot bot added this to the Backlog milestone Jan 29, 2025
@arturovt arturovt force-pushed the fix/core-event-replay-check-appRef-destroyed branch 2 times, most recently from 930486b to 4dd459d Compare January 30, 2025 19:56
@arturovt arturovt marked this pull request as ready for review January 30, 2025 19:57
@pullapprove pullapprove bot requested a review from crisbeto January 30, 2025 19:57
@arturovt arturovt force-pushed the fix/core-event-replay-check-appRef-destroyed branch 2 times, most recently from fd11c74 to c58d598 Compare February 23, 2025 22:38
@thePunderWoman thePunderWoman requested review from thePunderWoman and removed request for crisbeto March 5, 2025 17:11
@thePunderWoman thePunderWoman added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Mar 5, 2025
@thePunderWoman
Copy link
Contributor

@arturovt If you can resolve the conflicts here, I can take a look and get this closer to landing.

… event replay

In this commit, we check whether the application is destroyed before initializing event replay. The application may be destroyed before it becomes stable, so when the `whenStable` resolves, the injector might already be in a destroyed state. As a result, calling `injector.get` would throw an error indicating that the injector has already been destroyed.
@arturovt arturovt force-pushed the fix/core-event-replay-check-appRef-destroyed branch from c58d598 to 44cbfed Compare March 5, 2025 17:15
Copy link
Contributor

@thePunderWoman thePunderWoman left a comment

Choose a reason for hiding this comment

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

LGTM

@thePunderWoman thePunderWoman added 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 and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 5, 2025
@thePunderWoman
Copy link
Contributor

Caretaker note: the failing G3 tests are unrelated to this change. This is safe to merge.

@AndrewKushnir
Copy link
Contributor

This PR was merged into the repository by commit 79ae355.

The changes were merged into the following branches: main, 19.2.x

AndrewKushnir pushed a commit that referenced this pull request Mar 5, 2025
… event replay (#59789)

In this commit, we check whether the application is destroyed before initializing event replay. The application may be destroyed before it becomes stable, so when the `whenStable` resolves, the injector might already be in a destroyed state. As a result, calling `injector.get` would throw an error indicating that the injector has already been destroyed.

PR Close #59789
@arturovt arturovt deleted the fix/core-event-replay-check-appRef-destroyed branch March 6, 2025 09:52
@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 Apr 6, 2025
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 merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants