Skip to content

Commit eb0b185

Browse files
crisbetopkozlowski-opensource
authored andcommitted
fix(platform-browser): roll back HMR fix (#59557)
Rolls back the changes from #59514 because they ended up being breaking in 1P. We can revisit the internal fix in a different way. Fixes #59558. PR Close #59557
1 parent 326248c commit eb0b185

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/platform-browser/src/dom/dom_renderer.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,6 @@ export class DomRendererFactory2 implements RendererFactory2, OnDestroy {
201201
* @param componentId ID of the component that is being replaced.
202202
*/
203203
protected componentReplaced(componentId: string) {
204-
// Destroy the renderer so the styles get removed from the DOM, otherwise
205-
// they may leak back into the component together with the new ones.
206-
this.rendererByCompId.get(componentId)?.destroy();
207204
this.rendererByCompId.delete(componentId);
208205
}
209206
}

0 commit comments

Comments
 (0)