profile
viewpoint

Ask questionsKeyed {#each} block inside {#await}

Not sure if this is a bug but looks like the key in each block doesn't help much in await block

{#await promise}
    Loading
{:then arr}
    {#each arr as item (item.id)}
        <div>hello</div
    {/each}
{/await}

I had animation in hello div and it starts all over again on all items when I reassign the promises value. When I tried with just each block and the async code in script tags, only the added item got rerendered.

sveltejs/svelte

Answer questions antony

Hi @edreal

Please use the issue template, and provide a REPL example for your issue so that we can investigate the cause of your issue. The code you have supplied isn't valid code.

useful!
source:https://uonfu.com/
answerer
Antony Jones antony Desirable Objects Ltd London, UK https://beyonk.com Chief Technical Officer @beyonk-adventures Previously CTA @vendigo-group. Creator of @vudash. Software Quality zealot. Agile fanatic. Open source obsessive
Github User Rank List