Closed
Description
Describe the bug
Very cool that {@const}
is out now! Thanks again to @tanhauhau in #6413! 👍
There's a problem using it together with animate
. The following snippet raises
An element that uses the animate directive must be the sole child of a keyed each block
<script>
import { flip } from 'svelte/animate'
const indices = [...Array(10).keys()]
</script>
{#each indices as idx (idx)}
{@const idxp1 = idx + 1}
<li animate:flip>
{idxp1}
</li>
{/each}
Reproduction
Logs
No response
System Info
Irrelevant
Severity
blocking an upgrade