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 6688eb8 commit cb2f68eCopy full SHA for cb2f68e
playgrounds/sandbox/index.html
@@ -14,6 +14,12 @@
14
import { mount, hydrate, unmount } from 'svelte';
15
import App from '/src/App.svelte';
16
17
+ globalThis.delayed = (v, ms = 1000) => {
18
+ return new Promise((f) => {
19
+ setTimeout(() => f(v), ms);
20
+ });
21
+ };
22
+
23
const root = document.getElementById('root');
24
const render = root.firstChild?.nextSibling ? hydrate : mount;
25
playgrounds/sandbox/ssr-common.js
@@ -9,3 +9,9 @@ Promise.withResolvers ??= () => {
9
10
return { promise, resolve, reject };
11
};
12
13
+globalThis.delayed = (v, ms = 1000) => {
+};
0 commit comments