-
Notifications
You must be signed in to change notification settings - Fork 25.6k
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
fix(core): prevent BrowserModule
providers from being loaded twice
#45826
fix(core): prevent BrowserModule
providers from being loaded twice
#45826
Conversation
89b1ab3
to
278bd51
Compare
b1f5e26
to
29cafa3
Compare
This commit updates the logic of the `BrowserModule` to detect a situation when it's used in the `bootstrapApplication` case, which already includes `BrowserModule` providers.
822315f
to
869f7f0
Compare
@@ -21,7 +21,7 @@ describe('bootstrapApplication for standalone components', () => { | |||
|
|||
afterEach(() => { | |||
destroyPlatform(); | |||
rootEl.remove(); | |||
rootEl?.remove(); |
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.
nit / question not related to this PR: I'm curious why do we see this change?
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.
LGTM, thnx so much for addressing all the review feedback!
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.
reviewed-for: public-api
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.
reviewed-for: public-api
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.
reviewed-for: public-api
This PR was merged into the repository by commit fa755b2. |
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. |
This commit updates the logic of the
BrowserModule
to detect a situation when it's used in thebootstrapApplication
case, which already includesBrowserModule
providers.PR Type
What kind of change does this PR introduce?
Does this PR introduce a breaking change?