Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Dynamic sizes lit demo crashes/ loads very slowly

Offen
#1,188 11 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

  • #1226 von @hiro-nikaitou — ohne Merge geschlossen

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
typescript

Rechercherichtung

Beginne mit der StackBlitz-Reproduktion, insbesondere mit package.json und src/main.ts, und führe das isolierte RowVirtualizerDynamic-Szenario in den aufgeführten Browserversionen aus. Vergleiche das Lade- und scrollToIndex-Verhalten mit den gemeldeten Versionen lit-virtual 3.13.29 und virtual-core 3.17.0. Als erledigt gilt die Aufgabe, wenn die Seite zügig lädt, der Browser nicht abstürzt und das Scrollen bis zur Mitte funktioniert.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.
Vorherrschende Sprache
TypeScript
Sterne
7.1k
Forks
472
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
22

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus TanStack/virtual

Alle Issues in TanStack/virtual

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.