Skip to content

False positive binding_property_non_reactive warning when binding to arrayΒ #13968

@CrendKing

Description

@CrendKing

Describe the bug

In some cases when using bind:this={array[index]} to bind a component to an array element, it reports the binding_property_non_reactive warning. Making array a $state indeed clears the warning in this case, but in other simpler case it doesn't need to. Is this a bug?

Reproduction

Minimum playground demo

Logs

No response

System Info

Svelte 5.1.3

Severity

annoyance

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