79565835

Date: 2025-04-10 06:11:51
Score: 1
Natty:
Report link

Same things happening with me also

I'm using DevExtreme DataGrid ("devextreme-react": "^22.2.4") in a React application. I've implemented a MasterDetail setup where a child component is rendered inside the masterDetail template of the DataGrid.

Even after optimizing both the parent and child components (using React.memo, useCallback, etc.), I'm still experiencing unwanted re-renders of the child component. Specifically, when I click on a checkbox inside a DataGrid row or (any triggers a prop function), the entire masterDetail section re-renders, causing the child component to reload unnecessarily.

This behavior occurs even though the props passed to the child haven't changed.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Prem Chaube