@mui/x-data-grid-pro
Version:
The Pro plan edition of the MUI X Data Grid components.
5 lines • 665 B
JavaScript
import { createSelector, createRootSelector, createSelectorMemoized } from '@mui/x-data-grid/internals';
export const gridDetailPanelStateSelector = createRootSelector(state => state.detailPanel);
export const gridDetailPanelExpandedRowIdsSelector = createSelector(gridDetailPanelStateSelector, detailPanelState => detailPanelState.expandedRowIds);
export const gridDetailPanelExpandedRowsContentCacheSelector = createSelector(gridDetailPanelStateSelector, detailPanelState => detailPanelState.contentCache);
export const gridDetailPanelRawHeightCacheSelector = createSelectorMemoized(gridDetailPanelStateSelector, detailPanelState => detailPanelState.heightCache);