Await block prints "pending" contents multiple times
csansoon opened this issue · comments
When defining both "pending" and "fulfilled" states in an await block with a runQuery
, the "pending" content is printed multiple times when the query results is empty.
Example
<Row>
{#await runQuery('titles/titles-top-countries')}
<Text.H4>...</Text.H4>
{:then data}
<Text.H4 class="font-bold">Top countries: {data[data.length - 1].main_country}</Text.H4>
{/await}
</Row>
Screen.Recording.2024-04-11.at.12.56.10.mov
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.