-
-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rendering lag when using virtualised for both rows and columns along with Tanstack/table #685
Comments
important notice |
This situation is also obvious on mobile phone devices |
I am using Material React Table which uses TanStack Virtual for virtualization and I am experiencing this same problem |
Add this style to your parent div where you put overlow scroll , this is working fine for me |
This is not solution. It is just telling browser not to wait render of rows and continue scrolling. Rows are still rendered very slow |
I have same problem with |
Any solution??? |
@romlacerda is this happening more? @danprat92 can you update virtual to latest, or covert the example to https://stackblitz.com/ |
@piecyk |
I had the same performance issue (facing frame loss) while scorlling. Many will say its MUI, Chakra, Mantine issue and if you use native html elements directly it goes away, but I wonder, why then using https://github.com/bvaughn/react-window I do not face any performance issue This for sure its a Tanstack virtual issue and has to be addressed, because the point to use virtualisation is to prevent frame loss or performance issues :D |
I'm facing the same problem |
I ended migrating it to react-window with Autosizer and InfiniteLoader 😄 |
Thanks, I’ll take a look at the issue soon and work on improving the performance to prevent frame loss. If you’re interested, I’d be happy to accept any PRs that tackle this in the meantime. Appreciate your patience!" |
Kinda connected with #860 |
Facing the same issue, just follow the example on the doc with perhaps 20 columns using radix component to render. Pretty lagging. |
@rui-reevo looks like adding will-change helps a bit with lag, checkout #860 (comment) ping us if that had any effect. |
#860 (comment) still facing issue after implementing solution. |
Hi! |
Yes, in my case scrolling works faster after adding function scrollToFn to hook useVirtualizer
|
@YuesIt17 In my case I have used the same scrollToFn, still white space occurs even while scrolling a bit faster. I have memoised all the cell and the rows. Still facing the same. Let's say if I'm scrolling for a while, the scroll become too laggy. @piecyk Also added the the performant css properties
still facing the same issue Using Screen.Recording.2024-12-11.at.23.40.23.online-video-cutter.com.mp4 |
@piecyk how can i display skeleton in table-cell instead white or blank spaces? |
I have the same lagg. @piecyk, maybe there is some other optimization for sluggish scrolling? |
@YuesIt17 Not really, first we need to identify the root cause and figure out what's causing the slowdown. Thanks for your patience! I'm working on debugging this and updating the example, Just juggling a lot at the moment. |
@piecyk It would be nice to add this example to the official documentation with row + column virtualization + smooth-scroll for a table. |
Describe the bug
I'm currently using table + virtual in this example here
Blank page is shown when scrolling horizontally and vertically, lots of warning that scroll handler took too long
Your minimal, reproducible example
here
Steps to reproduce
Can be reproduced in this example here
Scroll vertically and horizonally causes blank screen, lots of scroll handler warnings about taking too long to execute it
Expected behavior
No blank page shown
How often does this bug happen?
Every time
Screenshots or Videos
307093934-1477c3a9-9396-407c-81e6-2550f45a5f08.mov
Platform
macOS
tanstack-virtual version
3.1.1
TypeScript version
No response
Additional context
Table: 8.12.0
Terms & Code of Conduct
The text was updated successfully, but these errors were encountered: