-
Notifications
You must be signed in to change notification settings - Fork 26.5k
fix(core): properly handle the case where getSignalGraph is called on a componentless NodeInjector #60772
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
e2f18db
to
b7b93c3
Compare
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.
@AleksanderBodurri I think that this change will need a test - without a test it is not clear under which conditions the assert starts to fail. And there is a risk that we accidentally refactor the code in a way that breaks dev tools again.
fa7bbf3
to
94d9e44
Compare
94d9e44
to
2a30cac
Compare
Good point 🙏 Added another test case for getSignalGraph that goes through the component-less NodeInjector case |
2a30cac
to
7b264ec
Compare
7b264ec
to
3683156
Compare
34cb547
to
3353fa5
Compare
6bfc98e
to
f7341af
Compare
… a componentless NodeInjector Previously this would throw an error on the assertLView when we try to discover the templateLView. Now this properly returns null for the template consumer and continues discovering other effects on the injector.
f7341af
to
54283a5
Compare
This PR was merged into the repository by commit 9a8f4f1. The changes were merged into the following branches: main, 20.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. |
Previously this would throw an error on the assertLView when we try to discover the templateLView.
Now this properly returns null for the template consumer and continues discovering other effects on the injector.