Skip to content

Svelte 5: #each randomly don't respect the array order after some mutations #11826

Closed as not planned
@jamesst20

Description

@jamesst20

Describe the bug

The are multiple random ways to reproduce the error, however, each random patterns are always reproductible.

Easiest pattern: Move Row A to third position then Move Row D to last position.

screen-capture.webm

Reproduction

Svelte 5: CodeSandbox

Svelte 4: CodeSandbox

REPL Simple dependency less (credits to 7nik in the comments below)

System Info

5.0.0-next.144

Severity

blocking all usage of svelte

Metadata

Metadata

Assignees

No one assigned

    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