Skip to content

Conversation

zombieJ
Copy link
Member

@zombieJ zombieJ commented Sep 19, 2023

ref https://github.com/react-component/virtual-list/pull/226/files#r1329877475

使用 useEffectLayout 进行滚动,从而跳过闪屏阶段 。

resolve: ant-design/ant-design#44100

@vercel
Copy link

vercel bot commented Sep 19, 2023

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

Name Status Preview Comments Updated (UTC)
virtual-list ❌ Failed (Inspect) Sep 19, 2023 3:01pm

@zombieJ
Copy link
Member Author

zombieJ commented Sep 19, 2023

@bbb169 看看,如果没问题我再补 test case

@codecov
Copy link

codecov bot commented Sep 19, 2023

Codecov Report

Merging #232 (5c03d41) into master (1410c66) will decrease coverage by 0.93%.
The diff coverage is 91.04%.

❗ Current head 5c03d41 differs from pull request most recent head 8ad4ae4. Consider uploading reports for the commit 8ad4ae4 to get more accurate results

@@            Coverage Diff             @@
##           master     #232      +/-   ##
==========================================
- Coverage   99.51%   98.58%   -0.93%     
==========================================
  Files          17       17              
  Lines         613      636      +23     
  Branches      128      134       +6     
==========================================
+ Hits          610      627      +17     
- Misses          3        9       +6     
Files Changed Coverage Δ
src/hooks/useScrollTo.tsx 92.00% <90.00%> (-8.00%) ⬇️
src/List.tsx 99.47% <100.00%> (+<0.01%) ⬆️
src/hooks/useHeights.tsx 100.00% <100.00%> (ø)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants