Skip to content

Lost reaction #16924

@Thiagolino8

Description

@Thiagolino8

Describe the bug

I still don't quite understand the minimum requirements to reproduce the bug, Hence the bad title
But in short: in the demo, SvelteBool isn't tracked even though it's read during render, only the initial value is tracked
If you use {#if} instead of a ternary, it works, even though you're only dealing with text
If you read the same comparison a second time, only the second time works

Reproduction

repl

Logs

System Info

Using Svelte compiler version 5.39.11

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions