{#await thePromise}

loading...

{:then theValue} {#if show}

the value is {theValue}

{/if} {:catch theError}

oh no! {theError.message}

{/await}