Replies: 2 comments 1 reply
-
Using |
Beta Was this translation helpful? Give feedback.
-
Hi! This seems related to React 18’s createRoot, which enables concurrent rendering and may delay DOM commits during fast scrolling. That can cause measureElement to run before elements are mounted, resulting in blank gaps. https://tanstack.com/virtual/latest/docs/api/virtualizer#useanimationframewithresizeobserver Try using useAnimationFrameWithResizeObserver in the virtualizer config. This defers measurement until the next animation frame after layout and helps avoid measuring uncommitted DOM. Let me know if that helps or if there’s a better approach for React 18. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
https://tanstack.com/virtual/latest/docs/framework/react/examples/fixed?panel=sandbox
This issue also exists in the official example provided.
Beta Was this translation helpful? Give feedback.
All reactions