Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Dynamic sizes lit demo crashes/ loads very slowly

Aberta
#1,188 11 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

  • #1226 de @hiro-nikaitou — fechado sem integrar

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
45/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Pouca atividade
Stack de tecnologia
typescript
Domínio
frontend, performance

Direção de pesquisa

Comece pela reprodução no StackBlitz, especialmente package.json e src/main.ts, e execute o cenário isolado RowVirtualizerDynamic nas versões de navegador listadas. Compare o comportamento de carregamento e de scrollToIndex com as versões reportadas lit-virtual 3.13.29 e virtual-core 3.17.0. Está concluído quando a página carrega prontamente, o navegador não trava e a rolagem até a metade funciona.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.
Linguagem predominante
TypeScript
Estrelas
7.1k
Forks
472
Merge médio
1d 3h
PRs com merge (30d)
31

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de TanStack/virtual

Todas as issues de TanStack/virtual

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.