Solid: Virtualizer does not render any rows when using Suspense

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

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

@clean99 がすでに取り組んでいます。

2026年11月3日 から。

  • #1360 @clean99 による — オープン

評価

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

調査の方向性

リンクされているCodeSandboxから始め、Suspenseの解決後にSynchronous ListとAsync Listを比較します。次に、PR #658から参照されているSolid統合とDynamic Solidの例を調べます。データの解決後にAsync Listが行を確実にレンダリングし、Synchronous Listが引き続き動作すれば完了です。

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

説明

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.
主要言語
TypeScript
スター
7.2k
フォーク
495
平均マージ
23時間 16分
マージ済み PR(30日)
19

環境構築

はじめの一歩

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

TanStack/virtual のほかの issue

TanStack/virtual の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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