Skip to content

feat(core): Add destroyed property to EnvironmentInjector - #61951

Closed
atscott wants to merge 1 commit into
angular:mainfrom
atscott:eidestroyed
Closed

atscott wants to merge 1 commit into
angular:mainfrom
atscott:eidestroyed

Conversation

@atscott

@atscott atscott commented Jun 6, 2025

Copy link
Copy Markdown
Contributor

Similar to DestroyRef, this adds the destroyed property to EnvironmentInjector. It also has the ability to register callbacks with onDestroy, which throws if destroyed is already true.

This also omits the bit about whether those callbacks have executed since I realized the property is set to true before executing the callbacks.

Similar to `DestroyRef`, this adds the `destroyed` property to
`EnvironmentInjector`. It also has the ability to register callbacks with
`onDestroy`, which throws if `destroyed` is already `true`.

This also omits the bit about whether those callbacks have executed
since I realized the property is set to `true` before executing the
callbacks.
@atscott atscott added area: core Issues related to the framework runtime target: minor This PR is targeted for the next minor release labels Jun 6, 2025
@ngbot ngbot Bot added this to the Backlog milestone Jun 6, 2025
@pullapprove
pullapprove Bot requested review from alxhub, kirjs and mmalerba June 6, 2025 23:07
@angular-robot angular-robot Bot added the detected: feature PR contains a feature commit label Jun 6, 2025

@mmalerba mmalerba left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

reviewed-for: public-api

@pullapprove
pullapprove Bot requested a review from crisbeto June 11, 2025 15:46
@pullapprove
pullapprove Bot requested a review from devversion June 11, 2025 21:30

@devversion devversion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Reviewed-for: public-api

@thePunderWoman thePunderWoman added action: merge The PR is ready for merge by the caretaker and removed action: merge The PR is ready for merge by the caretaker labels Jun 24, 2025
@ngbot

ngbot Bot commented Jun 24, 2025

Copy link
Copy Markdown

I see that you just added the action: merge label, but the following checks are still failing:
    failure status "mergeability" is failing

If you want your PR to be merged, it has to pass all the CI checks.

If you can't get the PR to a green state due to flakes or broken main, please try rebasing to main and/or restarting the CI job. If that fails and you believe that the issue is not due to your change, please contact the caretaker and ask for help.

@thePunderWoman

Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit 737b35b.

The changes were merged into the following branches: main

@angular-automatic-lock-bot

Copy link
Copy Markdown

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 Jul 25, 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 detected: feature PR contains a feature commit target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants