From 8cd43d95c2d38b0a7915fe375e0528022d5e0783 Mon Sep 17 00:00:00 2001 From: David Matejka Date: Tue, 4 Jun 2024 14:37:45 +0200 Subject: [PATCH] fix(react-datagrid): set correct state storage for legacy datagrid --- packages/react-datagrid/src/internal/useDataGridState.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/react-datagrid/src/internal/useDataGridState.ts b/packages/react-datagrid/src/internal/useDataGridState.ts index 973e0c9e4..db6c13291 100644 --- a/packages/react-datagrid/src/internal/useDataGridState.ts +++ b/packages/react-datagrid/src/internal/useDataGridState.ts @@ -40,6 +40,11 @@ export const useDataGridState = (props: Pick, initialItemsPerPage: props.itemsPerPage, initialSorting, initialSelection, + filteringStateStorage: 'session', + selectionStateStorage: 'session', + sortingStateStorage: 'session', + currentPageStateStorage: 'session', + pagingSettingsStorage: 'session', }) return {