Error: Maximum update depth exceeded

オープン
#924 コメント 11 件 リアクション 9 件 担当者 0 名 GitHub で見る

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

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

評価

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

調査の方向性

リンクされた CodeSandbox から始めて、104 行目付近の src/main.tsx を調べます。select をクリックしてエラーを再現し、rowVirtualizer's measureElement がある場合とない場合の動作を比較します。テーブルが maximum update depth エラーなしで正常にレンダリングされれば完了です。

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

説明

Describe the bug

I want to display the table in the dropdown。

I used the antd UI library

But they had a problem

Your minimal, reproducible example

https://codesandbox.io/p/devbox/infallible-smoke-8tc6d6?file=%2Fsrc%2Fmain.tsx%3A104%2C32

Steps to reproduce

click select

Don't use rowVirtualizer measureElement is normal

Expected behavior

Normal table rendering

How often does this bug happen?

None

Screenshots or Videos

No response

Platform
  • OS: [ macOS 14.6.1 ] - Browser: [Chrome 132.0.6834.160 ]
tanstack-virtual version

^3.12.1

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

環境構築

はじめの一歩

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

TanStack/virtual のほかの issue

TanStack/virtual の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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