@kanunilabs/datagrid-react / attachStateStoring
Function: attachStateStoring()
attachStateStoring<
TRow>(controller,config): () =>void
Defined in: datagrid-core/dist/index.d.ts:5848
Restore the stored layout, then keep it up to date. Returns a dispose function that detaches the listeners and FLUSHES any pending write — unmounting right after a resize is exactly when the user expects the width to have been remembered.
Type Parameters
TRow
TRow = GridRowData
Parameters
controller
DataGridController<TRow>
config
Returns
() => void