[PROBLEM] virtuoso + react-table re-rendering #859
Replies: 2 comments
-
I made another iteration - i wrote all components declarations inside my Table component
then i assign those components to <Virtuoso ANyone has ideas ? |
Beta Was this translation helpful? Give feedback.
-
Maybe this is a late response, but I had the same issue today. To fix it, create the components outside the rendering part of the table or any component and if you need to pass state data to them, use the
You can see more info here |
Beta Was this translation helpful? Give feedback.
-
Hello!
I was trying to use this example
But i get re-mounts or re-renders after initial mount, my table has animations, so its clearly seen + in has form inside, so all the fields get reset.
Currently using 3.1.5 version, cause it doesnt have that strange flickering \ jumping bug when scrolling.
In other issues here on github, i found that you recommend to NOT declare components inline to prevent re-renders, in a manner of sandbox
But, i dont clearly understand.
Please see this code-peace - is this sufficient and NOT considered inline?
Everything that goes to components prop - Scroller, Table, TableRow, TableBody, TableHead, Filler ?
So, ALL of them above should be NON-inline?
Cause i managed (as exampled above) to make components for itemContent, TableRow and Table and that WASN`T enough, i still got re-renders after initial mount.
Does someone have complete example of virtuoso+ react-table with NON inline declare of ALL components?
Or at least tell me where i am wrong in my 1* code example ?
Beta Was this translation helpful? Give feedback.
All reactions