Skip to content

Props in svelte:component are not properly updated when there are spread props #10602

Closed
@konstantinov90

Description

@konstantinov90

Describe the bug

A bug was introduced In #9006

in svelte:component when there are spread props, other non spread props are lost altogether after single update

Reproduction

see
https://svelte.dev/repl/23ef1cbbb7c4485fabdba130ee49e08a?version=4.1.0 - here spread props are not updated
https://svelte.dev/repl/23ef1cbbb7c4485fabdba130ee49e08a?version=4.1.1 - here spread props ARE updated, but other non-spread props are lost altogether
https://svelte.dev/repl/23ef1cbbb7c4485fabdba130ee49e08a?version=4.2.11 - bug still reproduces

Logs

No response

System Info

System:
    OS: macOS 14.2.1
    CPU: (8) arm64 Apple M1
    Memory: 102.66 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.11.0 - /usr/local/bin/node
    Yarn: 1.22.17 - /opt/homebrew/bin/yarn
    npm: 8.4.1 - /opt/homebrew/bin/npm
    pnpm: 7.9.5 - /opt/homebrew/bin/pnpm
    bun: 1.0.0 - ~/.bun/bin/bun
  Browsers:
    Brave Browser: 121.1.62.165
    Chrome: 113.0.5672.92
    Safari: 17.2.1

Severity

blocking an upgrade

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