Skip to content

Conversation

vasylenkoval
Copy link
Contributor

Description

This PR ports commits from #4888 to the v10 branch.

}
}

return oldDom;
} else if (parentVNode._dom != oldDom) {
if (oldDom && parentVNode.type && !parentDom.contains(oldDom)) {
Copy link
Contributor Author

@vasylenkoval vasylenkoval Aug 17, 2025

Choose a reason for hiding this comment

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

The ported code diff also happens to contain one more improvement that replaces the parentDom.contains(...) check with !oldDom.parentNode. Original PR: #4666. Please let me know if you don't want to include it here.

Copy link
Member

Choose a reason for hiding this comment

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

Should be fine I think, test suite passes anyhow. And thanks for tracking down the blame there, saves me from doing it myself

Copy link

📊 Tachometer Benchmark Results

Summary

A summary of the benchmark results will show here once they finish.

Results

The full results of your benchmarks will show here once they finish.

tachometer-reporter-action v2 for CI

Copy link
Member

@rschristian rschristian left a comment

Choose a reason for hiding this comment

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

Thanks! Sorry about the CI, evidently it's not quite configured properly on this branch.

@rschristian rschristian merged commit d92da32 into preactjs:v10.x Aug 17, 2025
11 of 12 checks passed
@vasylenkoval
Copy link
Contributor Author

Thanks @rschristian! Will update the js-framework-benchmark Preact implementations as well once a new release is cut.

@JoviDeCroock JoviDeCroock mentioned this pull request Aug 18, 2025
@JoviDeCroock
Copy link
Member

Published @vasylenkoval Thank you again for all of this work, you're a hero!

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.

3 participants