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

Collapse/Uncollapse is slow with a large list of items #59

Open
royrwood opened this issue Jan 16, 2018 · 3 comments
Open

Collapse/Uncollapse is slow with a large list of items #59

royrwood opened this issue Jan 16, 2018 · 3 comments

Comments

@royrwood
Copy link

I have a list of about 600 objects that I'm displaying with TreeViews, and things are really slow when I collapse/uncollapse a single item. My code is basically the same as the controlled example, so I think the problem is that the re-render call after I toggle the collapsed state for one of the objects results in a re-render of EVERYTHING in the list of objects.

I've taken care to ensure that the has a unique key and that the child

also has a unique key, but that doesn't seem to help React optimize the render.

Any thoughts, folks?

@diogofcunha
Copy link

@royrwood this project looks abandoned, you can try to use https://github.com/diogofcunha/react-virtualized-tree

@royrwood
Copy link
Author

Thanks-- I'll take a look...

@mindaugasnakrosis
Copy link

@royrwood how did you solve it?

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

3 participants