[PROBLEM] virtuoso + react-table re-rendering #859
-
Hello! I was trying to use this example 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
Please see this code-peace - is this sufficient and NOT considered 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? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
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.
-
@sergiomilici Thank you very much for your reply. I declared everything for So it seems like a bummer. If you managed to find a workaround for |
Beta Was this translation helpful? Give feedback.
-
The |
Beta Was this translation helpful? Give feedback.
-
One option you can do for
|
Beta Was this translation helpful? Give feedback.
I can't help you more without some code to look. Try deleting things, make everything as simple as possible to see what's causing the issue, remove part by part until you see when the error is not happening.