react-component / react-component/table

expand row very slow with 40 rows data. 大数据量,使用expandedRowKeys,展开/渲染变卡

Open
#235 3 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.4k
Forks
618
Avg merge
10h 19m
Merged PRs (30d)
2

Description

当数据量较大时,同时使用expandedRowKeys控制展开,将会导致点击展开按钮时,展开动作很卡;
同时使用setState触发render的时候也会变卡。

比如:第一级数据 40条,第二级 10条 第三级 10条。
示例:https://codesandbox.io/s/m2j8o3m6p

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

Start with the linked CodeSandbox reproduction and trace table expansion with expandedRowKeys for the nested 40-by-10-by-10 dataset. Compare the expansion path with a setState-triggered render; done means expanding rows and updating state remain responsive with the reported large data volume.

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
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.