-
Notifications
You must be signed in to change notification settings - Fork 249
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
[bug?] Moving a Node to another parent Node causes DOMElement refresh (visible blink). #472
Comments
@trusktr Yes this is totally the case. I would go about extending the ElementCache's to give the ability to swap with another ElementCache. That means you would have to create some sort of registry. We will not be working on this internally. |
Could be tricky to implement. |
@alexanderGugel @michaelobriena I can see why perhaps the |
What about using something like Matt Esch's virtual-dom on DOMElement content to avoid remaking DOM until necessary? |
It is, but its content is being set using
This is a much bigger feature request. While I think this something that we'll be adding sooner or later, it is not an immediate priority. |
When we move a child Node to another parent Node, the child Node's DOMElement's HTMLElement will be destroyed and a new one will be generated.
This forces us to reappend elements of other frameworks (f.e. a React component container) to the new HTMLElement of the DOMElement once it's ready.
The process of re-attaching a React component's HTMLElement container causes a visual blink as in this video:
<placeholder for video>
The blink is janky. It'd be nice if a DOMElement's HTMLElement was re-used.
cc @alexanderGugel @michaelobriena
The text was updated successfully, but these errors were encountered: