react-component / react-component/tree

官方例子,生成 3 万条 0 级节点数据,浏览器卡死 1 分多钟

Open
#402 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.3k
Forks
490
Avg merge
3d 17h
Merged PRs (30d)
5

Description

image

我在 antd 使用中也是这个场景,发现 rc-tree 将所有节点都渲染了一遍。可能是为了计算高度导致。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the official example with 30,000 level-zero nodes and observe the rc-tree rendering behavior described in the report. Start by tracing how rc-tree renders the full tree and why height calculation may trigger it; done should be defined as avoiding the reported browser freeze while preserving the tree’s expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.