List size is capped by browser/memory
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- typescript
- Área
- frontend, performance, web-dev
Línea de trabajo
Reproduce el problema usando el CodeSandbox enlazado y prueba los ejemplos con cantidades grandes en un navegador. Empieza inspeccionando la función getMeasurements de virtual-core mencionada en el informe y compara el comportamiento en el límite del navegador y con 150 millones de filas. Se considera completado cuando la cantidad solicitada sigue siendo accesible sin que la pestaña se bloquee.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
When trying to create a list with a large count of rows, one of two things happens:
A. If the count is over an arbitrary number, capped by each browser individually, the scroll won't go over that row.
For instance, for Chrome that number is 479348, and you can't scroll to the remaining items if there are any.
B. If the number is too large (for instance 150 mil), the tab will simply crash.
I believe this is caused by the getMeasurements function from the virtual-core library, as it tries to create an array of the count size.
Your minimal, reproducible example
https://codesandbox.io/p/sandbox/silent-wildflower-594ycm
Steps to reproduce
- In the sandbox click on one of the example buttons that will set a larger number, or edit the count property manually.
Expected behavior
A. I expect the scroll to allow the user to reach the exact number specified in the count.
B. I expect the browser not to crash .
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
- Any but specifically I'm using:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
tanstack-virtual version
v3.0.0-beta.54
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 7.2k
- Forks
- 495
- Merge medio
- 23 h 16 min
- PR fusionados (30 d)
- 19
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de TanStack/virtual
-
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
Los mantenedores suelen responder en 1 día
-
With `useScrollendEvent`, scrollToIndex and scrollToEnd stop short when the target moves while they settlePosiblemente ocupada @Darkatse la tomó hace 8 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
Los mantenedores suelen responder en 1 día
-
svelte-virtual renders no rows when the scroll element is bound after the store subscribesPosiblemente ocupada @clean99 la tomó hace 13 días. Abierto
Dificultad 4/5 1-2 días Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
anchorTo: 'end' does not keep the reading position when only paddingStart changesPosiblemente ocupada @duongynhi000001-crypto la tomó hace 12 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 30/100
Los mantenedores suelen responder en 1 día
-
anchorTo: 'end' loses the end when the scroll element shrinksPosiblemente ocupada @langleyd la tomó hace 41 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
Todos los issues de TanStack/virtual
Issues similares
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 83/100
gofish-graphics/gofish-graphics#1384 ·
Los mantenedores suelen responder en 1 día
-
adapter bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Olanetsoft/agent-lookout#353 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
vicharanashala/vibe#1542 ·
Los mantenedores suelen responder en 1 día
-
bug chore P2 size:XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
josephfung/curia#2666 ·
Los mantenedores suelen responder en 1 día
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
devarshishimpi/codra#178 ·
Los mantenedores suelen responder en 1 día