Skip to content

Svelte 5: "ownership_invalid_binding" with arrays #13137

@dm-de

Description

@dm-de

Describe the bug

I'm unable to get rid of "ownership_invalid_binding" warning, which happens - for example - if I slice an array.

Look for Table.svelte in bottom example.
Table has a pagination inside - and it is required to slice the array.
So I use $effect to create new sliced array.

Reproduction

It shows warnng "ownership_invalid_binding" on start.
If you click pages 1 or 2. You will see more of them.

LINK

Logs

No response

System Info

svelte@5.0.0-next.243

Severity

annoyance

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