Skip to content

fix: do not defer unmount; immediately unmount components#16624

Merged
Rich-Harris merged 5 commits into
sveltejs:mainfrom
harshmandan:harsh/fix/do-not-defer-unmount
Aug 15, 2025
Merged

fix: do not defer unmount; immediately unmount components#16624
Rich-Harris merged 5 commits into
sveltejs:mainfrom
harshmandan:harsh/fix/do-not-defer-unmount

Conversation

@harshmandan

@harshmandan harshmandan commented Aug 14, 2025

Copy link
Copy Markdown
Contributor

Description:

Do not defer unmounting of components. Unmount the components immediately. This changes fixes #16618 and brings back pre-async feature lifecycle order.

Tests and linting

  • Run the tests with pnpm test and lint the project with pnpm lint

@changeset-bot

changeset-bot Bot commented Aug 14, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4f5ac21

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

@github-actions

Copy link
Copy Markdown
Contributor

Playground

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

Comment thread .changeset/few-geese-itch.md Outdated
Co-authored-by: Jeremiasz Major <jrh.mjr@gmail.com>
@harshmandan harshmandan requested a review from jrmajor August 15, 2025 12:15

@Rich-Harris Rich-Harris left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@Rich-Harris Rich-Harris merged commit 95e5175 into sveltejs:main Aug 15, 2025
12 checks passed
@github-actions github-actions Bot mentioned this pull request Aug 15, 2025
@Rich-Harris

Copy link
Copy Markdown
Member

Actually I think we need to revert or revisit this.

This is my bad, I thought the PR was just reordering stuff within commit

@harshmandan

harshmandan commented Aug 16, 2025

Copy link
Copy Markdown
Contributor Author

Actually I think we need to revert or revisit this.

Saw the breaking example this morning. Already working on a fix.

Edit: Added a follow-up PR #16633

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.

Component lifecycle timing changed in 5.36 causing subscription overlap issues

4 participants