fix: ensure bound input content is resumed on hydration

pull/11986/head
Dominic Gannaway 2 years ago
parent fc7b9de36e
commit 11825d9bf2

@ -4,11 +4,8 @@ import App from './App.svelte';
const root = document.getElementById('root')!; const root = document.getElementById('root')!;
const render = root.firstChild?.nextSibling ? hydrate : mount; const render = root.firstChild?.nextSibling ? hydrate : mount;
setTimeout(() => { const component = render(App, {
const component = render(App, { target: document.getElementById('root')!
target: document.getElementById('root')! });
}); // @ts-ignore
// @ts-ignore window.unmount = () => unmount(component);
window.unmount = () => unmount(component);
}, 1000)

Loading…
Cancel
Save