Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Scroll correction sometimes gets stuck on estimating row sizes

オープン
#1,252 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
活発
技術スタック
react, typescript

調査の方向性

まず @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
  1. Have a layout with virtualized lines that sometime wrap lines (and therefore differ from the size in estimateSize)
  2. 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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TanStack/virtual のほかの issue

TanStack/virtual の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。