If my items are not dynamic in TableVirtuoso, and I already know the height of each item.How can I improve the render performance? #868
Replies: 4 comments
-
My recommendation would be to profile the rendering with the react dev tools and see what's the actual bottleneck. The resize observing is not for free, but I doubt disabling it would do miracles. Depending on your user behavior, you may try your luck with the scroll seek placeholders. They are non-trivial for a setup, but since you know your item size, you should be ok. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
And when I already knew the item size, I need to make |
Beta Was this translation helpful? Give feedback.
-
Feel free to fork and experiment with your setup - happy to review a PR. Notice that there's a property called |
Beta Was this translation helpful? Give feedback.
-
I have the map of each item hieght.
I use TableVirtuoso like this,
If the item component is really complicated, how can I improve the render performance?
There are some ideas in this case:
Do you have any other idea?
Thank you :)
Beta Was this translation helpful? Give feedback.
All reactions