Why does TableVirtuoso not have the getState method, and how to use restoreStateFrom without it? #929
Unanswered
DimaOsinnii
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there!
I struggle with flickering when rendering TableVirtuoso in my tabs component because the table has to be with dynamic height (rows might be with diff heights) but also has maxHeight.
So I use totalListHeightChanged to set the wrapper height till it won't be bigger than maxHeight, unfortunately, it causes flickering on the first render because totalListHeightChanged is called too many times, and its first call returns only the height of the table head, so witch this approach, when I navigate to another tab then return back to the tab with the table I see this flick every time =(
I think maybe restoreStateFrom prop can help here at least for navigation, but I didn't find an example how can I use it, and the table ref doesn't have getState method.
Maybe someone has overcome this problem or I'm doing something wrong, it would be great to know how this can be solved!
Beta Was this translation helpful? Give feedback.
All reactions