Skip to content

Collapse/un freezes when there are a lot of children nodes #30

@akarabach

Description

@akarabach

I used https://github.com/Lodin/react-vtree/blob/HEAD/__stories__/VariableSizeTree.story.tsx example and just changed data generator:

const createNode = (depth: number = 0) => {
  const node: DataNode = {
    children: [],
    id: nodeId,
    name: `test-${nodeId}`,
  }

  nodeId += 1

  if (depth === **2**) {
    return node
  }

  for (let i = 0; i < **1000**; i++) {
    node.children.push(createNode(depth + 1))
  }

  return node
}

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions