Solid: Virtualizer does not render any rows when using Suspense

Aperta
#1,011 7 commenti 2 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@clean99 ci sta già lavorando.

Dal 3/11/2026.

  • #1360 di @clean99 — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Inizia con il CodeSandbox collegato e confronta la Synchronous List con la Async List dopo che Suspense è stato risolto. Poi esamina l’integrazione di Solid e l’esempio Dynamic Solid referenziato dalla PR #658. Il lavoro è completato quando la Async List esegue il rendering delle sue righe in modo affidabile dopo che i dati sono stati risolti, mentre la Synchronous List continua a funzionare.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug

When using <Suspense> in solid-js with TanStack virtual, the virtualizer never renders any rows once the async data is resolved. The virtualizer receives the "count" of the data and appears to hold the data in the virtualizer, but the virtualizer never returns any rows.

I have tried a few other variations with using a signal for the ref and/or using queueMicrotask (from https://github.com/TanStack/virtual/pull/790), but neither resolves this.

I have reproduced this issue below using a variation of the Dynamic Solid example from https://github.com/TanStack/virtual/pull/658.

Your minimal, reproducible example

https://codesandbox.io/p/devbox/admiring-smoke-s3klk5

Steps to reproduce
  1. View the Synchronous List and see the virtualizer is working as expected.
  2. View the Async List and see the virtualizer never displays any rows.
Expected behavior

The async list should render the rows once suspense is resolved.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform
  • OS: Windows 10
  • Browser: Google Chrome
    • Version 136.0.7103.116 (Official Build) (64-bit)
tanstack-virtual version

3.13.9

TypeScript version

5.8.3

Additional context

In my project, I am using TanStack Query to retrieve the data, TanStack Router for routing, and TanStack Table to display the data. In the example, I am not using any of these for simplicity, and the problem persists.

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.
Lingua principale
TypeScript
Stelle
7.2k
Fork
495
Merge medio
23h 16m
PR unite (30g)
19

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di TanStack/virtual

Tutte le issue di TanStack/virtual

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.