How to handle data structure changes with setState?

While in development, there is a chance the table structure and names will change. If a user already has a state saved with the previous structure, this seems to result in errors when it is loaded.

Is there anything that can be used to indicate the structure is different so that perhaps it can be cleared and set again?

Hello,

I’ll show you several ways to get information about data structure changes
At first, the state object will contain information about the current datatable state like properties (keys) of each data item, column sizes, IDs of currently selected items and so on. Check this for more details
Also, we have onStructureUpdate event which fires when the structure of datatable was changed ( column added, hidden or reconfigured )
If you need to know the information about data like filtering, sorting and so on: onAfter- events can help