Replies: 2 comments 3 replies
-
@nirtamir2 Have you tried React.memo on your custom cell? |
Beta Was this translation helpful? Give feedback.
3 replies
-
I have same problem. When I toggle row select ALL cells in table re-renders. But I want that re-render just ONE cell. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I use @tanerstacl/react-table and I need to create custom cell and header.
When I create them inline my lint rule
react/no-unstable-nested-components
warn me that those components will create on each rerender and won't be able to keep state when their parent will rerender in addition to their bad performance.I wonder what is the best practice to use custom cells and header?
Sometimes I can avoid this by declaring the components from outside
But I cannot do it if my cell / header requires additional prop like
tableId
/ prop that the component has access to but the table do not have access.In those cases - what should I do?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions