v8.0.0-alpha.11
Pre-releaseWe'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
- ⚡ Mount and resize performance improvements for the Data Grid
Special thanks go out to the community contributors who have helped make this release possible:
@lauri865.
Following are all team members who have contributed to this release:
@alexfauquette, @arminmeh, @bernardobelchior, @flaviendelangle, @Janpot, @KenanYusuf, @LukasTy, @MBilalShafi, @noraleonte, @romgrk.
Data Grid
Breaking changes
-
createUseGridApiEventHandler()
is not exported anymore. -
The
filteredRowsLookup
object of the filter state does not containtrue
values anymore. If the row is filtered out, the value isfalse
. Otherwise, the row id is not present in the object.
This change only impacts you if you relied onfilteredRowsLookup
to get ids of filtered rows. In this case,usegridDataRowIdsSelector
selector to get row ids and checkfilteredRowsLookup
forfalse
values:const filteredRowsLookup = gridFilteredRowsLookupSelector(apiRef); -const filteredRowIds = Object.keys(filteredRowsLookup).filter((rowId) => filteredRowsLookup[rowId] === true); +const rowIds = gridDataRowIdsSelector(apiRef); +const filteredRowIds = rowIds.filter((rowId) => filteredRowsLookup[rowId] !== false);
-
The
visibleRowsLookup
state does not containtrue
values anymore. If the row is not visible, the value isfalse
. Otherwise, the row id is not present in the object:const visibleRowsLookup = gridVisibleRowsLookupSelector(apiRef); -const isRowVisible = visibleRowsLookup[rowId] === true; +const isRowVisible = visibleRowsLookup[rowId] !== false;
@mui/[email protected]
- [DataGrid] Avoid
<GridRoot />
double-render pass on mount in SPA mode (#15648) @lauri865 - [DataGrid] Fix loading overlay not in sync with scroll (#16437) @MBilalShafi
- [DataGrid] Refactor: remove material
MenuList
import (#16444) @romgrk - [DataGrid] Refactor: simplify
useGridApiEventHandler()
(#16479) @romgrk
@mui/[email protected]
![pro](https://camo.githubusercontent.com/c0f1741b522367bc6f41b31a7c7cda3a5d5cee488ef3e8301f617e165bfda025/68747470733a2f2f6d75692e636f6d2f722f782d70726f2d737667)
Same changes as in @mui/[email protected]
, plus:
- [DataGridPro] Fix the return type of
useGridApiContext()
for Pro and Premium packages on React < 19 (#16441) @arminmeh
@mui/[email protected]
![premium](https://camo.githubusercontent.com/82166d10345f5a3685d7e0c0f2dee29176b4e6e2bf3ea1f0aca3077ba0ebeeaa/68747470733a2f2f6d75692e636f6d2f722f782d7072656d69756d2d737667)
Same changes as in @mui/[email protected]
, plus:
- [DataGridPremium] Fix "no rows" overlay not showing with active aggregation (#16466) @KenanYusuf
Date and Time Pickers
@mui/[email protected]
Internal changes.
@mui/[email protected]
![pro](https://camo.githubusercontent.com/c0f1741b522367bc6f41b31a7c7cda3a5d5cee488ef3e8301f617e165bfda025/68747470733a2f2f6d75692e636f6d2f722f782d70726f2d737667)
Same changes as in @mui/[email protected]
, plus:
- [DateRangeCalendar] Support arrow navigation with multiple months rendered (#16363) @flaviendelangle
- [DateRangePicker] Fix
currentMonthCalendarPosition
prop behavior on mobile (#16455) @LukasTy - [DateRangePicker] Fix vertical alignment for multi input fields (#16489) @noraleonte
Charts
@mui/[email protected]
- [charts] Add
color
prop toSparkline
and deprecatecolors
(#16477) @bernardobelchior - [charts] Make typescript more flexible about plugins and their params (#16478) @alexfauquette
- [charts] Remove component for axis event listener (#16314) @alexfauquette
@mui/[email protected]
![pro](https://camo.githubusercontent.com/c0f1741b522367bc6f41b31a7c7cda3a5d5cee488ef3e8301f617e165bfda025/68747470733a2f2f6d75692e636f6d2f722f782d70726f2d737667)
Same changes as in @mui/[email protected]
.
Tree View
@mui/[email protected]
Internal changes.
@mui/[email protected]
![pro](https://camo.githubusercontent.com/c0f1741b522367bc6f41b31a7c7cda3a5d5cee488ef3e8301f617e165bfda025/68747470733a2f2f6d75692e636f6d2f722f782d70726f2d737667)
Same changes as in @mui/[email protected]
.
Docs
- [docs] Update charts colors default value (#16484) @bernardobelchior