-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
mui/material-ui
#43120Labels
performancescope: data gridChanges related to the data grid.Changes related to the data grid.type: bugIt doesn't behave as expected.It doesn't behave as expected.
Description
Duplicates
Steps to reproduce 🕹
Link to live example:
https://codesandbox.io/s/react-typescript-forked-xddwq4?file=/src/App.tsx
Steps:
- Click row
- Check react profiler. Every row is rendered causing lagging performance.
Current behavior 😯
On click the whole grid is rerendered, including every row and header. This causes significant delay when rendering for example up to 20 rows with 10 columns = 200 cells
Expected behavior 🤔
Only rows which selection changes should be rerendered. No headers should be rerendered
Context 🔦
Row selection performance is not good enough
Your environment 🌎
npx @mui/envinfo
Don't forget to mention which browser you used.
Output from `npx @mui/envinfo` goes here.
Order ID or Support key 💳 (optional)
72822
LinnaViljami, LimmaPaulus, michaelperrin, pekka-congrid, alanstreit-wf and 2 more
Metadata
Metadata
Assignees
Labels
performancescope: data gridChanges related to the data grid.Changes related to the data grid.type: bugIt doesn't behave as expected.It doesn't behave as expected.