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

Infinite loop caused by combining virtual scroll and grouping

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

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

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

評価

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

調査の方向性

リンクされた CodeSandbox を開き、src/main.tsx の 75 行目付近を調べてください。そこでは、仮想スクロールと行のグループ化を組み合わせることでループが発生します。react-table 8.9.2 と react-virtual 2.10.4 を使ってコンソールに無限に出力されるメッセージを再現し、その後、これらの機能の相互作用を追跡してください。グループ化と仮想スクロールを有効にしたときに、再現可能な例がループしたりフリーズしたりしなくなれば完了です。

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

説明

Describe the bug

I'm trying to combine virtual scrolling and row grouping, but it is causing an infinite loop.

Here is an example. Uncomment line 75 in main.tsx and you will see endless console messages and the browser tab will freeze.

Is there another way I should be combining these two features, or is this a bug? I couldn't find an example online that combines these two features.

Your minimal, reproducible example

https://codesandbox.io/p/sandbox/elastic-mendeleev-3nqqhg?embed=1&file=%2Fsrc%2Fmain.tsx%3A75%2C32

Steps to reproduce
  1. Open https://codesandbox.io/p/sandbox/elastic-mendeleev-3nqqhg?embed=1&file=%2Fsrc%2Fmain.tsx%3A75%2C32
  2. Uncomment line 75
Expected behavior

Infinite loop does not occur

How often does this bug happen?

Every time

Screenshots or Videos

https://github.com/TanStack/table/assets/358661/865d1a1d-e995-4c94-a937-8419ca8b293e

Platform

Chrome, Arch Linux x64

react-table version

8.9.2

TypeScript version

No response

Additional context

react-virtual v2.10.4

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
スター
28.5k
フォーク
3.6k
平均マージ
2日 3時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

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

TanStack/table のほかの issue

TanStack/table の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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