Skip to content

Svelte 5: binding an object to a prop has no effect #10779

Closed as not planned
Closed as not planned
@harrisi

Description

@harrisi

Describe the bug

When passing an object to a child prop, the child can update it as if it were bound, even without using bind:. When not using an object, bind: is required.

Reproduction

Svelte 5 REPL EDIT: This might be a better REPL to show that there's no difference.

Svelte 4 REPL

Logs

No response

System Info

REPL

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