[data grid] Data grid produces fatal error on empty rows with Preact #12360
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
support: pro standard
Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/
Steps to reproduce
Steps to reproduce:
npm init preact
, use typescriptnpm run dev
Link to live example: https://codesandbox.io/p/sandbox/determined-germain-jyyl3r
Current behavior
Using this setup with Preact, the community version of DataGrid works fine.
Also DataGridPro works fine when providing existing rows on initial render.
But as is often the case, the rows might not be available on initial render.
With empty rows on DataGridPro, the table is rendered erroneously as the render is halted on the following JS-errors;
Expected behavior
When passing empty rows to DataGridPro, the table is rendered with "No rows" label and without console errors.
Context
No response
Your environment
npx @mui/envinfo
Order ID
82100
Search keywords: DataGridPro preact
The text was updated successfully, but these errors were encountered: