[data grid] Detail panel rerenders on scroll #15413
Labels
component: data grid
This is the name of the generic UI component, not the React module!
feature: Master-detail
Related to the data grid Master-detail feature
status: expected behavior
Does not imply the behavior is intended. Just that we know about it and can't work around it
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
Steps to reproduce
Steps:
Current behavior
I am using a lazy loading detail panel. When I expand a row, scroll to the bottom, and then scroll back to the top, the detail panel reloads.
You check on the link by putting a log in the
useEffect
Expected behavior
The detail panel should not re-render once it has been mounted.
Context
Since re-rendering is occurring so frequently, it will trigger backend API calls repeatedly, leading to performance issues.
Your environment
npx @mui/envinfo
Search keywords: [data grid] Detail panel rerenders on scroll
The text was updated successfully, but these errors were encountered: