We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1db3106 commit a83a6a9Copy full SHA for a83a6a9
Client/main.browser.ts
@@ -9,10 +9,6 @@ const rootElemTagName = 'app'; // Update this if you change your root component
9
if (module['hot']) {
10
module['hot'].accept();
11
module['hot'].dispose(() => {
12
- // Before restarting the app, we create a new root element and dispose the old one
13
- const oldRootElem = document.querySelector(rootElemTagName);
14
- const newRootElem = document.createElement(rootElemTagName);
15
- oldRootElem.parentNode.insertBefore(newRootElem, oldRootElem);
16
modulePromise.then(appModule => appModule.destroy());
17
});
18
} else {
0 commit comments