row.getCanExpand() always false on expanding table
Im trying to make a expandable table but when I try customizing the cell for the expandable column, the
row.getCanExpand() always returns false. I find no way to make it return true
This is my comun def
And this is what I am passing to my useReactTable method
3 Replies
rare-sapphireOP•2y ago
I also tried setting
manualExpanding: true and enableExpanding: true, but nothing changedhelpful-purple•2y ago
how are your subrows accessed?
stormy-gold•2y ago
Hi,
I am also facing the same problem. i am getting the subrows in this way:
const table = useReactTable({
data: updatedTableData,
columns,
state: { expanded },
onExpandedChange: setExpanded,
getSubRows: (row) => row?.subRows,
getCoreRowModel: getCoreRowModel(),
manualExpanding: true,
getExpandedRowModel: getExpandedRowModel(),
autoResetExpanded: false,
});
And I am recursively updating the table data in the tanstack table v8. if I Recursively update data in react-table version 7, it works fine.