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 2a86323 commit 7272b65Copy full SHA for 7272b65
playgrounds/demo/src/entry-client.ts
@@ -4,11 +4,9 @@ import App from './App.svelte';
4
const root = document.getElementById('root')!;
5
const render = root.firstChild?.nextSibling ? hydrate : mount;
6
7
-setTimeout(() => {
8
- const component = render(App, {
9
- target: document.getElementById('root')!
10
- });
11
- // @ts-ignore
12
- window.unmount = () => unmount(component);
13
-}, 2000)
+const component = render(App, {
+ target: document.getElementById('root')!
+});
+// @ts-ignore
+window.unmount = () => unmount(component);
14
0 commit comments