Skip to content

Reactivity issue with dates #15952

@johnnysprinkles

Description

@johnnysprinkles

Describe the bug

I'm building a calendar and I have a chain of reactivity involving Date objects that's not updating as expected. The start of the chain is a date I'm mutating so I'm using SvelteDate there, but then I'm making some derived state which just constructs new Date object (doesn't mutate) and it's not updating as expected.

Reproduction

https://svelte.dev/playground/3e983b8dfd814c0195d7389d9775f2c2?version=5.30.2

Logs

System Info

jpsimons@Johns-Mac-mini burlyweb % bunx envinfo --system --npmPackages svelte,rollup,webpack --binaries --browsers

  System:
    OS: macOS 15.4.1
    CPU: (8) arm64 Apple M2
    Memory: 70.14 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.12.0 - /usr/local/bin/node
    npm: 10.9.0 - /usr/local/bin/npm
    bun: 1.2.13 - ~/.bun/bin/bun
  Browsers:
    Chrome: 136.0.7103.93
    Safari: 18.4
  npmPackages:
    svelte: ^5.28.2 => 5.28.2

Severity

blocking an upgrade

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