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

Dynamic sizes lit demo crashes/ loads very slowly

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

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

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

  • #1226 @hiro-nikaitou による — マージされずにクローズ

評価

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

調査の方向性

StackBlitz の再現環境、特に package.json と src/main.ts から始め、指定されたブラウザーバージョンで分離された RowVirtualizerDynamic シナリオを実行します。読み込みと scrollToIndex の動作を、報告されている lit-virtual 3.13.29 および virtual-core 3.17.0 のバージョンと比較します。ページがすぐに読み込まれ、ブラウザーがクラッシュせず、途中までのスクロールが機能すれば完了です。

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

説明

Describe the bug

Your demo with the latest versions of lit-virtual (3.13.29) and virtual-core (3.17.0) either loads very slowly (> 1 minute) or just crashes the browser.

I was really happy a new version was available, because 3.16 (and some versions before) broke the scrollToIndex functionality in Lit, but this release might unfortunately be worse.
Once the page actually loads the scrollToIndex does seem to work 😁

Your minimal, reproducible example

https://stackblitz.com/edit/vitejs-vite-wvfdjawc?file=package.json,index.html,tsconfig.json,src%2Fmain.ts&terminal=dev

Steps to reproduce

I isolated the RowVirtualizerDynamic scenario and removed the other 2 that were on the page.
There is no real reproduction path, just try to load the page.

It can take over a minute for the page to load sometimes. And sometimes the browser just crashes.

Expected behavior

The page loads fast and the scrolling to halfway works.

How often does this bug happen?

Often

Screenshots or Videos

No response

Platform

MacOS 26.5
Chrome 148.0.7778.215
Firefox 148.0.7778.215

tanstack-virtual version

3.17.0

TypeScript version

5.6.3

Additional context

@tanstack/lit-virtual": "3.13.29"

I removed the generation of random paragraphs with faker and just have every item be the same string, that didn't solve anything.

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日 9時間
マージ済み PR(30日)
22

環境構築

はじめの一歩

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

TanStack/virtual のほかの issue

TanStack/virtual の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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