Skip to content

Conversation

@thePunderWoman
Copy link
Contributor

@thePunderWoman thePunderWoman commented Nov 25, 2025

In the case that a component injector is destroyed before the animation queue runs, the animation queue would fail to run because it was using a destroyed injector. This commit changes the animation queue to run in the context of the Application root injector, which is not destroyed until the app is destroyed.

fixes: #65628

@thePunderWoman thePunderWoman added action: review The PR is still awaiting reviews from at least one requested reviewer area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release labels Nov 25, 2025
@ngbot ngbot bot modified the milestone: Backlog Nov 25, 2025
@thePunderWoman thePunderWoman changed the title fix(core): run animation queue in environment injector context fix(core): run animation queue in application root injector context Nov 25, 2025
@thePunderWoman thePunderWoman force-pushed the animation-test branch 4 times, most recently from 3a3a22c to 03c502d Compare November 25, 2025 21:02
@AndrewKushnir AndrewKushnir removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Nov 25, 2025
@thePunderWoman thePunderWoman force-pushed the animation-test branch 3 times, most recently from deab056 to 3820fce Compare November 25, 2025 22:20
In the case that a component injector is destroyed before the animation
queue runs, the animation queue would fail to run because it was using a
destroyed injector. This commit changes the animation queue to run in the
context of the EnvironmentInjector, which is not destroyed until the app
is destroyed.

fixes: angular#65628
@thePunderWoman thePunderWoman added the action: merge The PR is ready for merge by the caretaker label Nov 25, 2025
@pkozlowski-opensource pkozlowski-opensource merged commit d8ab83c into angular:main Dec 2, 2025
20 checks passed
@pkozlowski-opensource
Copy link
Member

This PR was merged into the repository. The changes were merged into the following branches:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

animate.leave prevents removal of dynamically created components

4 participants