Skip to content

Commit

Permalink
Merge pull request #716 from contember/fix/datagrid-filter-store
Browse files Browse the repository at this point in the history
fix(react-datagrid): set correct state storage for legacy datagrid
  • Loading branch information
matej21 authored Jun 4, 2024
2 parents 538909e + 8cd43d9 commit 5e27d87
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/react-datagrid/src/internal/useDataGridState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ export const useDataGridState = (props: Pick<DataGridProps<{ tile?: unknown }>,
initialItemsPerPage: props.itemsPerPage,
initialSorting,
initialSelection,
filteringStateStorage: 'session',
selectionStateStorage: 'session',
sortingStateStorage: 'session',
currentPageStateStorage: 'session',
pagingSettingsStorage: 'session',
})

return {
Expand Down

0 comments on commit 5e27d87

Please sign in to comment.