Skip to content

Svelte 5: Use index as key breaks each block #9868

Closed
@Thiagolino8

Description

@Thiagolino8

Describe the bug

Simply using index does not change anything in the code, but if you use index in the key in some other way it adds a function but does not provide the index for that function
image

Reproduction

https://svelte-5-preview.vercel.app/#H4sIAAAAAAAAChWMQQqDMBAAv7Jse2hBEHoMpdB3NILBrHUhicFEoSz795rjDMwIzhyooPkIJhcJDb5zxg7rLzcoB4VKJ5d136Zm5EJuWkACpW9dDDwUXAGuFDtguI1XYR3vapOtT89H_7JJ-pboeYmr55nJo6nbTjroH6WtwoOAAAAA

Logs

No response

System Info

App.svelte (Svelte v5.0.0-next.22)

Severity

blocking an upgrade

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions