Skip to content
New issue

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

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

Already on GitHub? # to your account

fix: ensure unowned derived dependencies are not duplicated when reac… #15232

Merged
merged 4 commits into from
Feb 6, 2025

Conversation

trueadm
Copy link
Contributor

@trueadm trueadm commented Feb 6, 2025

Fixes #15229. When we reconnect a derived that was previously unowned and tacking skipped, we only add a single reaction – however, the original derived might have had multiple dependencies. Duplicate dependencies is fine for owned deriveds, however for unowned we should be a little more resilient to ensure we're not falling into the fail case.

Copy link

changeset-bot bot commented Feb 6, 2025

🦋 Changeset detected

Latest commit: fec7668

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
svelte Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Feb 6, 2025

Playground

pnpm add https://pkg.pr.new/svelte@15232

@trueadm trueadm merged commit f2c83e5 into main Feb 6, 2025
10 checks passed
@trueadm trueadm deleted the unowned-fix-5 branch February 6, 2025 21:25
@github-actions github-actions bot mentioned this pull request Feb 6, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reactivity regression with 5.19.5 with conditional function calls
2 participants