Replies: 1 comment 1 reply
-
You can try memoizing the Cell outside of the columns definition. Something like const CheckboxCell = ({cell}) => <CheckBox checked = {cell.value}
disabled = {true} type = "embedded" />;
const columns = [
{
id: "is_ecommerce",
accessor: "is_ecommerce",
Cell: CheckboxCell
}
]; |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this column:
When resizing or ordering the table, this column is rendered multiple times, even though the cell.value does not change.
Is there any way to avoid these unnecessary renders?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions