Skip to content

Updating props passed via boolean operation break reactivity #17474

@tipy02

Description

@tipy02

Describe the bug

Upgrading from svelte 5.20.0 to 5.46.3 I find some of my code lost reactivity due to prop update.

As described in doc https://svelte.dev/docs/svelte/$props#Updating-props

doing that is possible and the provided demo works well.

But in my code I pass a boolean operation to the child component instead of a boolean as in the example and it proven that it make a difference.

Reproduction

https://svelte.dev/playground/f5bec8a0be534b048f819df28bb3453c?version=5.46.3

Logs

System Info

System:
    OS: Linux 6.8 Ubuntu 24.04.3 LTS 24.04.3 LTS (Noble Numbat)
    CPU: (8) x64 Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz
    Memory: 4.56 GB / 15.43 GB
    Container: Yes
    Shell: 5.2.21 - /bin/bash
  Binaries:
    Node: 24.12.0 - /home/loic/.nvm/versions/node/v24.12.0/bin/node
    npm: 11.6.2 - /home/loic/.nvm/versions/node/v24.12.0/bin/npm
  npmPackages:
    svelte: ^5.46.3 => 5.46.3 
    webpack: ^5.104.1 => 5.104.1

Severity

annoyance

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