Skip to content

derived value is not updating correctly #15829

Open
@days-later

Description

@days-later

Describe the bug

the derived value depends on a class field of a newly created class.
when this derived value has a fallback value (like "v || '-'") it doesnt update correctly. removing the fallback seems to fix the issue.

Reproduction

https://svelte.dev/playground/dec1b43d47eb4c3aa729291f91ab8a39?version=5.28.2

Logs

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 AMD Ryzen 5 5600X 6-Core Processor
    Memory: 21.19 GB / 31.91 GB
  Binaries:
    Node: 22.12.0 - ~\AppData\Local\fnm_multishells\15692_1745479128899\node.EXE
    Yarn: 1.22.22 - ~\AppData\Local\fnm_multishells\15692_1745479128899\yarn.CMD
    npm: 11.3.0 - ~\AppData\Local\fnm_multishells\15692_1745479128899\npm.CMD
    pnpm: 10.7.0 - ~\AppData\Local\fnm_multishells\15692_1745479128899\pnpm.CMD
  Browsers:
    Edge: Chromium (133.0.3065.82)
    Internet Explorer: 11.0.22621.3527

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    p0stuff we should fix ASAP

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions