Skip to content

Inconsistency with binding on component initialization #8168

Closed
@tmarsik42

Description

@tmarsik42

Describe the bug

Binded variable does not update on component initialization with a different value in a component. Find reproduction below.
Bug was probably introduced in 3.53.1, broke in 3.54.0

Could this be related?
#8114

Thanks Etrain for consulting it with me and markjaquith on Discord for finding out in which version it broke.

Reproduction

Working repro:
https://svelte.dev/repl/9da799ea19ea43b295b32b543da48f10?version=3.53.1

Broken repro:
https://svelte.dev/repl/9da799ea19ea43b295b32b543da48f10?version=3.54.0

Logs

No response

System Info

System:
    OS: macOS 13.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 109.84 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 19.3.0 - /opt/homebrew/bin/node
    Yarn: 3.1.1 - /opt/homebrew/bin/yarn
    npm: 9.2.0 - /opt/homebrew/bin/npm
  Browsers:
    Chrome: 108.0.5359.124
    Firefox: 106.0.5
    Safari: 16.2

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