Skip to content

Commit 7272b65

Browse files
authored
chore: remoev setTimeout (#12009)
1 parent 2a86323 commit 7272b65

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

playgrounds/demo/src/entry-client.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ import App from './App.svelte';
44
const root = document.getElementById('root')!;
55
const render = root.firstChild?.nextSibling ? hydrate : mount;
66

7-
setTimeout(() => {
8-
const component = render(App, {
9-
target: document.getElementById('root')!
10-
});
11-
// @ts-ignore
12-
window.unmount = () => unmount(component);
13-
}, 2000)
7+
const component = render(App, {
8+
target: document.getElementById('root')!
9+
});
10+
// @ts-ignore
11+
window.unmount = () => unmount(component);
1412

0 commit comments

Comments
 (0)