In react-wrapper - CollapsibleColumns - are expanded when update of cell happens

Hi Handsontable team

We are evaluating the hansontable component.
We noticed the following behavior:

When data is saved in the backend in the afterChange hook and then reloaded (BL is executed in the backend), all collapsibleColumns are automatically expanded (see video & code example). Is this behavior desired? It would be nice if the status of the collapsed and expanded columns remained unchanged.

If this is not possible, I have considered the following alternatives:
Is there a built-in loading screen?

Is it possible to save the status of the collapsed and expanded columns and reset them after the data has been loaded?

https://codesandbox.io/p/sandbox/49wp3z?file=%2Fsrc%2FSample.tsx

Handsontable

Hi @pmi

There is no API to keep the columns collapsed but you can use the Hooks API reference - React Data Grid | Handsontable hook to get details about which columns are collapsed. Then on the afterChange or afterLoadData you can run the API of the CollapsibleColumns plugin to collapse the same headers. The method to call is collapseSection. Reference: CollapsibleColumns - React Data Grid | Handsontable