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

Implement method for cloning multiple instances into external dom #364

Merged

Conversation

kennethloeffler
Copy link
Member

@kennethloeffler kennethloeffler commented Sep 22, 2023

Related: lune-org/lune#110

It is not possible to preserve refs that point across subtrees using WeakDom::clone_into_external because a new CloneContext is used for each invocation - this new method gives a way to use one CloneContext for multiple subtrees!

Not sure about the method name, docs could probably be a little better, etc.

This allows a consumer to clone multiple instances into an external
dom and preserve refs that point across the cloned instance subtrees
Copy link
Member

@Dekkonot Dekkonot left a comment

Choose a reason for hiding this comment

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

Add to changelog + comment nitpick

@Dekkonot Dekkonot merged commit c0c7d5a into rojo-rbx:master Sep 27, 2023
@kennethloeffler kennethloeffler deleted the dom-clone-multiple-into-external branch September 27, 2023 21:42
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.

2 participants