Skip to content

Default properties in parent component default to "undefined" when omitted with spread #3063

@lud

Description

@lud

Simple demo here : https://svelte.dev/repl/d0476b3598e648cfbe38922617a8798c?version=3.5.3

Basically, if you have an object that is used as spread props for a child component, and you overwrite the variable with a new object with different keys, the keys that were present and are missing takes precedence as undefined over the child component default values.

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