Skip to content

Account for fragment clones#571

Merged
JoviDeCroock merged 1 commit intomainfrom
account-for-fragment-cloning
Jun 28, 2025
Merged

Account for fragment clones#571
JoviDeCroock merged 1 commit intomainfrom
account-for-fragment-cloning

Conversation

@JoviDeCroock
Copy link
Copy Markdown
Member

@JoviDeCroock JoviDeCroock commented Jun 28, 2025

In preactjs/preact#4680 we fixed a memory leak where Preact would not be able to release top-level Fragments. This fix lead to us cloning the top-level Fragment and its children. Which lead us to this new place where we are suffering from having stale vnodes in memory. This banks on the _original property which is our VNode ID in Preact to give us the non-stale reference.

Resolves #569

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 28, 2025

🦋 Changeset detected

Latest commit: 6acc61e

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

This PR includes changesets to release 1 package
Name Type
@prefresh/core 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

@JoviDeCroock JoviDeCroock merged commit dbf8e68 into main Jun 28, 2025
1 check passed
@JoviDeCroock JoviDeCroock deleted the account-for-fragment-cloning branch June 28, 2025 16:53
@github-actions github-actions Bot mentioned this pull request Jun 28, 2025
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.

Components Nested Inside Fragments don't HMR

1 participant