Snippets Collections
const sleep = (ms: number) =>
	new Promise((resolve) =>
	setTimeout(resolve, ms),
);

{#await data.streamed.members}
	{#await sleep (200) then _}
	    Loading data
    {/await}
{:then value}
  {#each value as { id, full_name }}
  	{id}: {full_name}
  {/each}
{/await}
star

Tue Oct 17 2023 07:59:00 GMT+0000 (Coordinated Universal Time)

#svelte #delay-loading-spinner

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension