If you aren't displaying anything while awaiting the promise you can write the await and then together:
{#await promise then value}
< Card data={value} />
{/await}
What about, if you want to do the promise only when a button is pressed ? let's say update a form. that lives with another promise already executed.?? you still need to check undefined before.. other wise you will show "form updated correctly" on the promise...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If you aren't displaying anything while awaiting the promise you can write the await and then together:
{#await promise then value}
< Card data={value} />
{/await}
What about, if you want to do the promise only when a button is pressed ? let's say update a form. that lives with another promise already executed.?? you still need to check undefined before.. other wise you will show "form updated correctly" on the promise...