Skip to content

fix: ensure clearing of old values happens independent of root flushes #15664

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

Merged
merged 3 commits into from
Apr 1, 2025

Conversation

trueadm
Copy link
Contributor

@trueadm trueadm commented Apr 1, 2025

Fixes #15606. We were calling old_values.clear() in the wrong place!

Copy link

changeset-bot bot commented Apr 1, 2025

🦋 Changeset detected

Latest commit: 3b44fe6

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

@svelte-docs-bot
Copy link

Copy link
Contributor

github-actions bot commented Apr 1, 2025

Playground

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

@trueadm trueadm merged commit 80557bb into main Apr 1, 2025
13 checks passed
@trueadm trueadm deleted the fix-old-value-bug branch April 1, 2025 14:59
@github-actions github-actions bot mentioned this pull request Apr 1, 2025
@gyzerok
Copy link

gyzerok commented Apr 4, 2025

@trueadm since the problem you've fixed could lead to subtle bugs can we cut a release with this change?

@Thiagolino8
Copy link

Thiagolino8 commented Apr 5, 2025

@trueadm since the problem you've fixed could lead to subtle bugs can we cut a release with this change?

You can use the version from a specific commit using pkg.pr.new
There is a message above from the github bot showing how

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

Successfully merging this pull request may close these issues.

State is undefined in cleanup functions when component is recreated with {#key}
4 participants