the storage
the storage key of the table (getStorageKeyFn())
the properties of the columns in the default order
the state, undefined if nothing was stored
localStorage.setItem("orderssortingState", '[{"columnIndex":2,"sortState":"desc"}]');
readLegacyState(localStorage, "orders", ["id", "customer", "total"]);
// → { version: 1, sort: [{ property: "total", sortState: "desc" }] }
1.1.92
Reads the state that tables before 1.1.92 stored under
<key>sortingState,<key>scrollStateand<key>collapsedExpandedStateand converts it to a TableStateIf. The stored sort items hold a column INDEX – it is converted to the property of the column at that index in the default column order (the order a table of the old version always started with).