API Docs • Svelte

PHOTO EMBED

Thu May 27 2021 18:39:49 GMT+0000 (Coordinated Universal Time)

Saved by @omargnagy

{#await promise}
	<!-- promise is pending -->
	<p>waiting for the promise to resolve...</p>
{:then value}
	<!-- promise was fulfilled -->
	<p>The value is {value}</p>
{:catch error}
	<!-- promise was rejected -->
	<p>Something went wrong: {error.message}</p>
{/await}
content_copyCOPY

https://svelte.dev/