derived value is not updating correctly · Issue #15829 · sveltejs/svelte · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

derived value is not updating correctly #15829

Closed
@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

      TMZ Celebrity News – Breaking Stories, Videos & Gossip

      Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

      Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

      🎥 Watch TMZ Live

      TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.