Tanstack Query+Virtual Suspense reactivity
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.1k
- Forks
- 466
- Avg merge
- 2d 31m
- Merged PRs (30d)
- 13
Description
Describe the bug
I am having problems with suspense and query+virtual displaying the virtual list, using it without virtual and only query works fine though
Your minimal, reproducible example
https://stackblitz.com/edit/solidjs-templates-ztdgo1
Steps to reproduce
Just comment out suspense to see that it works afterwards
Expected behavior
tanstack virtual should work with suspense and tanstack query
How often does this bug happen?
Often
Screenshots or Videos
No response
Platform
Linux
tanstack-virtual version
latest
TypeScript version
latest
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked StackBlitz minimal reproduction and compare the virtual list with Suspense enabled versus commented out. Read the TanStack Virtual Solid integration and the query/Suspense setup shown in the reproduction. Done means the virtual list renders correctly while using TanStack Query and Suspense.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100