Svelte

Async component rendering bug with #each

#17074

Development PRs

Issue

Solved
D
dylan1951
Oct 30, 2025, 7:30 AM

Describe the bug

The rendered state doesn't update. Not sure what the exact issue is.

Reproduction

<script>
    let value = $state("Apple");

    const foo = $derived(await value);
    const bar = $derived(foo === value && [0]);
</script>

<select bind:value>
    <option value="Apple">Apple</option>
    <option value="Banana">Banana</option>
</select>

{#each bar}
    Selected fruit: {value}
{/each}

Logs

System Info

Svelte playground

Severity

annoyance

Info

Closed at Nov 16, 2025, 5:35 PM
Assignees None
Labels None
Milestone None

Pro tip: You can prefix GitHub URLs of issues, PRs or discussions with svcl.dev/ to view them on this page! Also try it on a GitHub release ;)