Skip to content

fix(core): inject APP_ID before injector is destroyed #61885

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arturovt
Copy link
Contributor

@arturovt arturovt commented Jun 4, 2025

In this commit, we request APP_ID outside the onDestroy callback because the injector might already be in a destroyed state when the callback runs.

@pullapprove pullapprove bot requested a review from alxhub June 4, 2025 23:45
@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label Jun 4, 2025
@ngbot ngbot bot added this to the Backlog milestone Jun 4, 2025
@JeanMeche
Copy link
Member

Are you sure the application injector can be destroyed at this point ?

@arturovt
Copy link
Contributor Author

arturovt commented Jun 5, 2025

Yes, I have an app which reproduces this issue.

@JeanMeche
Copy link
Member

can we try to capture that in a test then ?

@arturovt
Copy link
Contributor Author

arturovt commented Jun 5, 2025

yes, it's reproducible in existing tests in the repo, it didn't capture before because its wrapped with ngServerMode

In this commit, we request `APP_ID` outside the `onDestroy` callback because the injector might already be in a destroyed state when the callback runs.
@arturovt arturovt force-pushed the fix/core-request-appId branch from c511f0a to 6fead75 Compare June 5, 2025 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: core Issues related to the framework runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy