Tanstack Virtual freezes when using React DevTools
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- react, typescript
- 領域
- frontend, performance
調査の方向性
まず、React DevToolsをインストールしたChromeでリンク先の最小再現を実行し、次にsrc/pages/doctors/@components/DoctorsList.tsxの仮想化実装を調査します。Componentsタブで子要素を選択してスクロールし、フリーズとFiber警告を確認します。選択後も仮想化されたリストのスクロールが継続し、警告が発生しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
Tanstack Virtual with WindowVirtualizer freezes when selecting any child of the virtualized list in the Components tab of React Devtools. Only full page refresh restores the virtualizer. The issue starts with a warning in the console: Could not find Fiber with id "2689".
Virtualization implementation can be found here:
https://github.com/Firnu/calamariassignment/blob/main/src/pages/doctors/%40components/DoctorsList.tsx
From my tests, the issue persists in other implementations as well.
Your minimal, reproducible example
https://6ee3967b.calamariassignment.pages.dev/
Steps to reproduce
- Open the provided example (make sure to have React Devtools installed).
- Open Chrome dev tools F12
- Scroll the list to confirm that Tanstack Virtual is working
- Select any item in React Devtools (Components tab) that is a child of the virtualizer.
- Scroll the list again, the items will get frozen (only last displayed items will stay visible). The console should print a warning Could not find Fiber with id "x"
Please refer to the attached video.
Expected behavior
Tanstack Virtual should continue working even when selecting items in React Devtools (Components tab). Worst case scenario, it should be able to restore itself when items related to virtualizer are deselected.
How often does this bug happen?
Every time
Screenshots or Videos
https://github.com/TanStack/virtual/assets/17776290/ba752de1-22ff-4e9f-b63c-054e2f163f97
Platform
Chrome 122.0.6261.70 (Official), Windows 11
tanstack-virtual version
3.1.2
TypeScript version
v5.3.3
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.2k
- フォーク
- 495
- 平均マージ
- 23時間 16分
- マージ済み PR(30日)
- 19
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
TanStack/virtual のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
With `useScrollendEvent`, scrollToIndex and scrollToEnd stop short when the target moves while they settle対応中かも @Darkatse が 8 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
-
svelte-virtual renders no rows when the scroll element is bound after the store subscribes対応中かも @clean99 が 13 日前に担当しました。 オープン
難易度 4/5 1〜2日 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
anchorTo: 'end' does not keep the reading position when only paddingStart changes対応中かも @duongynhi000001-crypto が 12 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
メンテナーはふだん 1 日以内に返信
-
anchorTo: 'end' loses the end when the scroll element shrinks対応中かも @langleyd が 41 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
TanStack/virtual の issue をすべて見る
似ている issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 83/100
gofish-graphics/gofish-graphics#1384 ·
メンテナーはふだん 1 日以内に返信
-
adapter bug
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
Olanetsoft/agent-lookout#353 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
vicharanashala/vibe#1542 ·
メンテナーはふだん 1 日以内に返信
-
bug chore P2 size:XS
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
josephfung/curia#2666 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
devarshishimpi/codra#178 ·
メンテナーはふだん 1 日以内に返信