diff --git a/playgrounds/demo/src/entry-client.ts b/playgrounds/demo/src/entry-client.ts index 6675efdd1..2bde77658 100644 --- a/playgrounds/demo/src/entry-client.ts +++ b/playgrounds/demo/src/entry-client.ts @@ -4,11 +4,9 @@ import App from './App.svelte'; const root = document.getElementById('root')!; const render = root.firstChild?.nextSibling ? hydrate : mount; -setTimeout(() => { - const component = render(App, { - target: document.getElementById('root')! - }); - // @ts-ignore - window.unmount = () => unmount(component); -}, 2000) +const component = render(App, { + target: document.getElementById('root')! +}); +// @ts-ignore +window.unmount = () => unmount(component);