Description
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 #790), but neither resolves this.
I have reproduced this issue below using a variation of the Dynamic
Solid example from #658.
Your minimal, reproducible example
https://codesandbox.io/p/devbox/admiring-smoke-s3klk5
Steps to reproduce
- View the Synchronous List and see the virtualizer is working as expected.
- 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.