Skip to content
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

Avoid cloning fragments and arrays of VNodes #2

Merged
merged 1 commit into from
Nov 11, 2022
Merged

Conversation

skirtles-code
Copy link
Owner

Update replaceChildren() to avoid taking copies of fragment VNodes and VNode arrays when nothing has changed.

addProps() can now use replaceChildren(), instead of implementing its own tree walking.

@skirtles-code skirtles-code merged commit 2df965a into main Nov 11, 2022
@skirtles-code skirtles-code deleted the avoid-cloning branch May 6, 2023 03:19
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.

None yet

1 participant