8000 [Patch port] fix(core): missing useExisting providers throwing for optional calls by crisbeto · Pull Request #61152 · angular/angular · GitHub
[go: up one dir, main page]

Skip to content

[Patch port] fix(core): missing useExisting providers throwing for optional calls #61152

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

Closed
wants to merge 1 commit into from

Conversation

crisbeto
Copy link
Member
@crisbeto crisbeto commented May 6, 2025

Note: this is a patch port of #61137.

Fixes that the runtime was throwing a DI error when attempting to inject a missing useExisting provider, despite the call being optional.

The problem was that when the provider has useExisting, we do a second inject call under the hood which didn't include the inject flags from the original call.

Fixes #61121.

Fixes that the runtime was throwing a DI error when attempting to inject a missing `useExisting` provider, despite the call being optional.

The problem was that when the provider has `useExisting`, we do a second `inject` call under the hood which didn't include the inject flags from the original call.

Fixes angular#61121.
@crisbeto crisbeto requested a review from AndrewKushnir May 6, 2025 19:05
@crisbeto crisbeto 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 May 6, 2025
@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label May 6, 2025
@ngbot ngbot bot added this to the Backlog milestone May 6, 2025
@AndrewKushnir AndrewKushnir 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 May 6, 2025
@AndrewKushnir
Copy link
Contributor

This PR was merged into the repository by commit 4623b61.

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

AndrewKushnir pushed a commit that referenced this pull request May 6, 2025
…61152)

Fixes that the runtime was throwing a DI error when attempting to inject a missing `useExisting` provider, despite the call being optional.

The problem was that when the provider has `useExisting`, we do a second `inject` call under the hood which didn't include the inject flags from the original call.

Fixes #61121.

PR Close #61152
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 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.

2 participants
0