-
Notifications
You must be signed in to change notification settings - Fork 27k
fix(core): prevent calling devMode only function on @defer error.
#56559
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
Conversation
|
Note: It might be worth adding a test to cover that. It looks like we have no test that covers the |
AndrewKushnir
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JeanMeche thanks for the fix 👍
If we are missing tests for the failed loading scenario (specifically when there is no |
|
@JeanMeche there is a failing |
`getTemplateLocationDetails()` is a devMode only function and should guarded by `ngDevMode` or calling it will throw an error. fixes angular#56558
2d975d0 to
932c62c
Compare
|
This PR was merged into the repository by commit 5be16d0. The changes were merged into the following branches: main, 18.0.x |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
getTemplateLocationDetails()is a devMode only function and should be guarded byngDevModeor invoking it will throw an error.fixes #56558