virtual icon indicating copy to clipboard operation
virtual copied to clipboard

Virtualized list re-renders on every scroll frame

Open neoantox opened this issue 3 months ago • 0 comments

Describe the bug

I'm using useWindowVirtualizer and noticing that on scroll, the list and each visible row re-render on every scroll tick.

Your minimal, reproducible example

https://stackblitz.com/edit/tanstack-virtual-rnakrfql?file=src%2Fmain.tsx

Steps to reproduce

Just scroll the list slightly

Expected behavior

I expect the list won't re-render with every scroll tick and will only re-render when virtual items are added or removed.

How often does this bug happen?

Every time

Screenshots or Videos

https://github.com/user-attachments/assets/8c991716-4fc4-42b3-8288-2b9c68bca2e4

Platform

OS: macOS Browser: Chrome

tanstack-virtual version

v3.13.12

TypeScript version

v5.7.3

Additional context

No response

Terms & Code of Conduct

  • [x] I agree to follow this project's Code of Conduct
  • [x] 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.

neoantox avatar Oct 03 '25 16:10 neoantox