Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jonbo opened this issue May 9, 2025 · 1 comment

Comments

@jonbo
Copy link

jonbo commented May 9, 2025

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

@PatrickG
Copy link
Member

It works until svelte 5.19.4, starts failing with svelte 5.19.5.
Probably related to this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants