-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
Describe the bug
In #13877 there was a fix for SvelteMap, which fixed the original reported REPL, but was still a problem in our codebase. It seems I found what the issue is.
@trueadm fyi
Reproduction
Here is the REPL.
The difference is calling getAsync the second time in {@const value1 = cache.getAsync(id)}. This again ends up in the infinite loading state. In our case we are probably calling from some other place, but here I place it on the next line for the minimal repro purpose.
Relevant piece from the playground inline for your convenience
{#await id}
Loading...
{:then id}
{@const value = cache.getAsync(id)}
{@const value1 = cache.getAsync(id)}
{#if value instanceof Promise}
Loading...
{:else}
{value}
{/if}
{/await}Logs
No response
System Info
irrelevantSeverity
annoyance
Metadata
Metadata
Assignees
Labels
No labels