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

Maximum update depth exceeded: rowVirtualizer.measureElement

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
react, typescript

調査の方向性

まず、リンクされた再現リポジトリを実行し、その table-dynamic-column-width ページと table-fixed-column-width ページを比較します。examples/react/virtualized-rows/src/main.tsx にある参照対象の React 仮想化例を読み、measureElement の動作を追跡します。ページ全体で列のサイズが動的に変わり、要求された幅の制約をサポートしながら、maximum update depth エラーなしで仮想化が動作すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Describe the bug

Hello!

I am trying to add list virtualization to a tanstack table.

I followed the implementation example from https://github.com/TanStack/table/blob/main/examples/react/virtualized-rows/src/main.tsx. List virtualization is working great, but now it seems like I am forced to use a fixed width column. Before this, each column took a dynamic (different) width based on its content without having text wrapping to a new line and the table was spanning across the full width of the page.

I tried removing the fixed width from columns but then I have "Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops." error:

Image
Your minimal, reproducible example

https://github.com/dragos-cojocaru/tanstack-virtual-table-dynamic-width

Steps to reproduce

I created a repository where you can check the error: https://github.com/dragos-cojocaru/tanstack-virtual-table-dynamic-width:

  • table-dynamic-column-width page is where I have the error because I removed the fixed width of columns
  • table-fixed-column-width page is where the virtualization is working but I have fixed width for each table column.
Expected behavior

I want to have a tanstack table with virtualization that span across the whole page width and each column width should be dynamically to accommodate its content. Preferably I should be able to specify a max-width for all columns or for each column separately.

How often does this bug happen?

None

Screenshots or Videos

No response

Platform
  • Windows 11 Pro
  • Chrome 141.0.7390.108 (Official Build) (64-bit)
tanstack-virtual version

3.13.12

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.1k
フォーク
472
平均マージ
1日 1時間
マージ済み PR(30日)
11

環境構築

はじめの一歩

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

TanStack/virtual のほかの issue

TanStack/virtual の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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