Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor(core): drop injection context assertion in production #62038

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

Drops assertInInjectionContext call in production in afterNextRender.

@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label Jun 12, 2025
@ngbot ngbot bot added this to the Backlog milestone Jun 12, 2025
Copy link
Member

@JeanMeche JeanMeche left a comment

Choose a reason for hiding this comment

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

A quick check showed that this was the only callsite not guarded by ngDevMode.

Drops `assertInInjectionContext` call in production in `afterNextRender`.
@arturovt arturovt force-pushed the refactor/core-tree-shake-assert branch from 31e2553 to fb24a36 Compare June 18, 2025 23:24
@arturovt
Copy link
Contributor Author

@thePunderWoman cc

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