Comments (1)
Hey @ojhamohit, I checked your example and it feels like there's too much unnecessary re-rendering and recomputation going on. That is the reason the order is being updated on setting the rows because the Grid tree is being recomputed and regenerated on every re-render.
According to the documentation, all the non-primitive props like columns, rows, etc. should have stable references and should ideally not be updated during the lifetime of the component for apiRef.current.updateRows
to work properly.
As a reference, I've added a small example where on updating a leaf row, the order persists. Could you try updating your code to have stable references for non-primitive props and report if the issue persists?
from mui-x.
Related Issues (20)
- [How to get column widths exact on resize within detail panel based on Data Grid columns] HOT 2
- [data grid] Is it possible to have tree data row children open and under that details panel? HOT 9
- [data grid] Same column in different column groups HOT 8
- ThemeProvider not provide Translation keys. HOT 2
- [Data Grid Premium - Cell Copy and paste] Copied content from cell doesnt mantain the sorting set in the data premium grid HOT 3
- [data grid] Copy and Paste content from cell selection doesn't maintain the sorting set HOT 3
- [charts] labels are incorrect in RTL HOT 3
- [data grid] New DataGrid header style not properly passed to header HOT 4
- [data grid] Pressing `Delete` key in a Boolean type cell, the value incorrectly resets to empty string HOT 6
- [data grid premium] Copy and Paste content from cell selection doesnt mantain the sorting set HOT 2
- [data grid] Copy and Paste content from cell selection doesnt mantain the sorting set HOT 4
- [all components] Remove all IE 11 support
- [pickers] Error loading AdapterDateFns with date-fns v3 in vite: Missing "./_lib/format/longFormatters" specifier in "date-fns" package HOT 2
- [data grid] Include password protection and set a custom file name for the exported Excel file HOT 4
- [data grid] Column's renderCell api parameter's type is from community version instead of pro version. HOT 1
- [charts] Default Gauge Pointer
- [data grid] Debounce header filter inputs for async server-side filtering and pagination HOT 1
- [charts] How to disable animation of SparkLineChart? HOT 1
- [data grid] filter on invalid date HOT 5
- [data grid] Autosizing does not work with custom cell renderer HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mui-x.