Skip to content

Derived value is not reactive when used in an else if branch. #13174

@pauldemarco

Description

@pauldemarco

Describe the bug

A derived value that is within a svelte.ts class is not reactive when used in an else if branch.

Reproduction

Fully Reproducing REPL

Logs

No response

System Info

I also tried this branch to no avail: #13153

  System:
    OS: Linux 6.8 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
    CPU: (24) x64 12th Gen Intel(R) Core(TM) i9-12900K
    Memory: 53.61 GB / 62.54 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 22.6.0 - ~/.nvm/versions/node/v22.6.0/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.8.2 - ~/.nvm/versions/node/v22.6.0/bin/npm
    pnpm: 9.1.4 - ~/.local/share/pnpm/pnpm
    bun: 1.0.0 - /usr/local/bin/bun
  Browsers:
    Brave Browser: 110.1.48.171
    Chrome: 128.0.6613.119
  npmPackages:
    svelte: https://gitpkg.now.sh/sveltejs/svelte/packages/svelte?fix-graph-inconsistency => 5.0.0-next.244 


### Severity

blocking all usage of svelte

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions