Our application is currently using the settings manualColumnResize along with afterColumnResize. The column widths are being stored in an array of numbers in state named columnWidths: number [] and passed to manualColumnResize. When we resize a column by dragging the blue line at the header, we use afterColumnResize to update that the value in columnWidths.
We are seeing a performance issue when we select a range of N columns and change the column width because afterColumnResize is getting called for each column, which is then forcing N re-renders due to state changing and creating this delay of row updates and laggy behavior. Is there a way to optimize this to just 1 call for selection ranges, or is there an alternative way to do this properly?