react-component / react-component/tree
官方例子,生成 3 万条 0 级节点数据,浏览器卡死 1 分多钟
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 490
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 5
Description

我在 antd 使用中也是这个场景,发现 rc-tree 将所有节点都渲染了一遍。可能是为了计算高度导致。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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