Skip to content

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

@royrwood

Description

@royrwood

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions