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

How can one render a subtree only? #68

Closed
tusharmath opened this issue Aug 13, 2016 · 1 comment
Closed

How can one render a subtree only? #68

tusharmath opened this issue Aug 13, 2016 · 1 comment

Comments

@tusharmath
Copy link

If I have a huge dom tree, it would be much better in terms of performance if the patch is applied not on the complete tree but instead directly on the subtree that has changed. This is something react is able to do using components. Is there a way to way to do that using maquette?

@johan-gorter
Copy link
Contributor

First of all, maquette can diff DOM trees up to 1000 - 5000 nodes within a single frame on most devices. Are you sure you are dropping frames due to diffing being too slow?

Maquette provides the ability to use caching to skip subtrees from being diffed. See #49 for an example how to use the createCache function. Documenting this further is already on our radar, see #60.

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

No branches or pull requests

2 participants