Uncaught Error: Maximum update depth exceeded. When we add styles for first row.
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- typescript
- 領域
- frontend, performance
調査の方向性
リンクされた StackBlitz の再現を実行し、src/index.css を調べます。まず、行の高さを変更する 1 行目のスタイルから確認してください。スタイルの変更後に続く仮想化の測定とスクロールの動作を追跡します。テーブルが無限の更新ループやクラッシュなしにスクロールし続ければ完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
When virtualizing rows in @tanstack/table, if you add styles for the first row(:first-child) that change the height of the row and start scrolling, the calculation breaks down and the application crashes because it cannot calculate the height and goes into an infinity loop.
Your minimal, reproducible example
https://stackblitz.com/edit/tanstack-table-vduexv?file=src%2Findex.css
Steps to reproduce
- Add styles for the first row(
tr:first-child { padding: 8px; or border: 1px solid lightgray; }) - Start scrolling the table.
- An error has occurred.
Expected behavior
The application did not crash.
How often does this bug happen?
Every time
Screenshots or Videos
Platform
OS: macOS Browser: Chrome
tanstack-virtual version
v3.1.2
TypeScript version
No response
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 が 11 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
-
svelte-virtual renders no rows when the scroll element is bound after the store subscribes対応中かも @clean99 が 15 日前に担当しました。 オープン
難易度 4/5 1〜2日 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
anchorTo: 'end' does not keep the reading position when only paddingStart changes対応中かも @duongynhi000001-crypto が 15 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
メンテナーはふだん 1 日以内に返信
-
anchorTo: 'end' loses the end when the scroll element shrinks対応中かも @langleyd が 44 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
TanStack/virtual の issue をすべて見る
似ている issue
-
inference/go type/feature
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
anomalyco/opencode#65148 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
truapi-release
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
paritytech/product-sdk#529 ·
メンテナーはふだん 1 日以内に返信
-
Add: Mansudae TVオープンapproved check:passed streams:add
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
-
[Perf] Canvas layer composition is quadratic: splitRenderLayers re-copies the node array per nodeオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
devlikeapro/waha#2369 ·
メンテナーはふだん 5 日以内に返信