Cell dependencies is a solution for a different problem I have, so thank you for that. I don’t think that’s a solution for this issue however.
After using the cells method for a bit I’ve come to the conclusion that it is not working at all.
Since it runs for every cell in the table, not just visible cells, it gets really slow with just a few rows and columns. This is unfortunately stopping me from moving forward.
Or are there a any other way to solve this? Since cell renderers is also out of the picture I don’t have any other ideas right now.
It get the feeling that HoT doesn’t quite work well with React at the moment. Unless you really tread down the happy path. So many workarounds and bugs. It’s unfortunate
I think I really need cell renderers to solve my problem… But without autoColumnSize it’s not a satisfying solution still.
EDIT: I think there might have snuck in a table.render() in a hot loop causing the performance to drop. Still cells function caused a crash when I’m hiding the table, so I don’t want to use that anyway.
What I have noticed however is that adding cell renderers to column settings does work in my simple case. Just adding a class to the cell element in a renderer does not seem to cause any problems and autoColumnSize still seems to work. I would like to add the renderer to the entire table, but that does not work for some reason…
I am using a couple useRef:s to store table settings and my own cell meta. Feels a bit clunky, but if it works it works I guess.