Skip to content

Potential false positive for ownership_invalid_binding warning #15727

Closed
@reinhard-sanz

Description

@reinhard-sanz

Describe the bug

I've found a potential false positive for ownership_invalid_binding warning

I have a class instance in another file that is exported. I hand over said instance to a component.
When i now change an instance prop (which is a state underneath) i get this error.

If it is not a false positive, a quick explanation why is much appreciated.

See REPL for clarity

Reproduction

https://svelte.dev/playground/cb79cd8b0fcf4811a545b187df94e6e6?version=5.25.10

Logs

System Info

System:
    OS: Linux 5.15 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
    CPU: (8) x64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
    Memory: 8.00 GB / 15.50 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 22.10.0 - ~/.nvm/versions/node/v22.10.0/bin/node
    Yarn: 1.22.22 - /mnt/c/Users/Reinhard/AppData/Roaming/npm/yarn
    npm: 11.1.0 - ~/.nvm/versions/node/v22.10.0/bin/npm
    pnpm: 10.3.0 - ~/.local/share/pnpm/pnpm
    bun: 1.1.13 - /mnt/c/Users/Reinhard/AppData/Roaming/npm/bun
  npmPackages:
    rollup: ^4.24.0 => 4.34.8

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions