Skip to content

$derived reactivity breaks with "createSubscriber" after its teardown/destroy has been called at least once. #15888

Open
@jonbo

Description

@jonbo

Describe the bug

The reactivity of $derived seems to break in combination with createSubscriber after its teardown has been called once AND if the value it's watching is not being used elsewhere. Using instead a plain (reactive) function seems to work fine, however.

My apologies if this is intended behavior, and not a bug which it seems to me to be.

Reproduction

https://svelte.dev/playground/b451d2f033f94669a5ee60537e679fd5?version=5.28.2

Logs

System Info

5.28.2

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