latitude icon indicating copy to clipboard operation
latitude copied to clipboard

Await block prints "pending" contents multiple times

Open csansoon opened this issue 10 months ago • 1 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>

https://github.com/latitude-dev/latitude/assets/57395395/9e56832b-b93d-4adb-bbb5-fa47c0e547af

csansoon avatar Apr 11 '24 10:04 csansoon

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar May 18 '24 01:05 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jun 01 '24 01:06 github-actions[bot]