Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyed each is not reactive to key expression dependencies #5444

Closed
pushkine opened this issue Sep 23, 2020 · 1 comment · Fixed by #5447
Closed

Keyed each is not reactive to key expression dependencies #5444

pushkine opened this issue Sep 23, 2020 · 1 comment · Fixed by #5447
Labels

Comments

@pushkine
Copy link
Contributor

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

@Conduitry
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants