virtual-list icon indicating copy to clipboard operation
virtual-list copied to clipboard

perf: skipping re-rendering

Open muzea opened this issue 3 years ago • 26 comments

fix https://github.com/ant-design/ant-design/issues/34182

Summary by CodeRabbit

  • 重构

    • 多处组件与钩子将内部回调与渲染逻辑 memo 化/稳定化,减少不必要重渲染与子元素重建,用户感知到性能更稳定且行为保持一致。
  • 测试

    • 多项异步、滚动与触摸测试改为在 React 的 act() 中执行,新增更复杂触摸场景并统一时序,测试更稳定。
  • 文档

    • 添加注释提示列表引用不变但内部数据变化时的潜在差异。
  • 变更

    • 精简配置:移除旧的共享配置对象,改为直接传入 key 提取器,TypeScript 类型使用需相应调整。

muzea avatar Nov 13 '22 15:11 muzea

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
virtual-list ❌ Failed (Inspect) Jan 4, 2023 at 10:55AM (UTC)

vercel[bot] avatar Nov 13 '22 15:11 vercel[bot]

冲突了

afc163 avatar Dec 27 '22 10:12 afc163

Codecov Report

Merging #190 (b505549) into master (812e53e) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #190   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           15        15           
  Lines          480       484    +4     
  Branches        92        92           
=========================================
+ Hits           480       484    +4     
Impacted Files Coverage Δ
src/Filler.tsx 100.00% <100.00%> (ø)
src/List.tsx 100.00% <100.00%> (ø)
src/hooks/useChildren.tsx 100.00% <100.00%> (ø)
src/hooks/useHeights.tsx 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

codecov[bot] avatar Dec 31 '22 11:12 codecov[bot]

/ping @afc163 @zombieJ 这个 PR 上还有啥欠缺的东西吗?

muzea avatar Jan 15 '23 07:01 muzea