latitude
latitude copied to clipboard
Await block prints "pending" contents multiple times
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>
https://github.com/latitude-dev/latitude/assets/57395395/9e56832b-b93d-4adb-bbb5-fa47c0e547af
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.