Scroll correction sometimes gets stuck on estimating row sizes
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 活発
- 技術スタック
- react, typescript
- 領域
- frontend, performance
調査の方向性
まず @tanstack/react-virtual の計測キャッシュとスクロール補正の挙動を確認し、次に、添付動画と比較しながら、一覧にある折り返し行のシナリオを再現してください。引き続き有用な再現手順が必要です。行が表示または非表示になったときに、レイアウトがちらついたり、スクロール補正の無限ループに入ったりしなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
I think this bug is in the same ballpark to #1221:
We have a complex layout that is (for testing purposes) explicitly undersized and causes layout shifts. This sometimes ends up in an infinite loop trying to correct the scroll position and then stays stuck. Internally we've observed this on some of our playwright tests and eventually found a reproduction.
Oddly enough this behavior can be "fixed" by halting the js execution for a frame and then continue, which makes me suspect that the measurement cache or layout measurement is derived from an outdated layout box.
If necessary, I can try to create a specific sandboxed reproduction.
Your minimal, reproducible example
no reproduction as of yet
Steps to reproduce
- Have a layout with virtualized lines that sometime wrap lines (and therefore differ from the size in
estimateSize) - scroll up/down with the affected rows appearing/disappearing from the virtualized range
Expected behavior
Table layout should not jitter.
How often does this bug happen?
Every time
Screenshots or Videos
https://github.com/user-attachments/assets/25dbf5de-1f12-442e-8d81-582b1cad8f64
Platform
- OS: MacOS, Windows
- Browser: Firefox, Chrome
- @tanstack/react-virtual: 3.13.9 ... 3.14.9
tanstack-virtual version
3.14.9
TypeScript version
v7.0.0
Additional context
No response
Terms & Code of Conduct
- I agree to follow this project's Code of Conduct
- I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
- 主要言語
- TypeScript
- スター
- 7.1k
- フォーク
- 466
- 平均マージ
- 2日 31分
- マージ済み PR(30日)
- 13
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
TanStack/virtual のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 62/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
TanStack/virtual の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
mksglu/context-mode#1200 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
anthropics/claude-code#96687 ·
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
AOSSIE-Org/DebateAI#582 · コメント 2 件 ·