Skip to content

Keyed each is not reactive to key expression dependencies #5444

@pushkine

Description

@pushkine

https://svelte.dev/repl/b1ed6b7fc7cf47ce9fc75f0555bcd799?version=3.26.0

<script>
	export let id = 0;
</script>
{#each ["foo", "bar"] as key(id + key)}
	{Math.random()}
{/each}

Expected a different result on every id change

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions