-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[data grid] Uncaught MissingRowIdError: No row with id <id> found #16638
Comments
To help us diagnose the issue efficiently, could you provide a stripped-down reproduction test case using the latest version? A live example would be fantastic! ✨ For your convenience, our documentation offers templates and guides on creating targeted examples: Support - Bug reproduction Just a friendly reminder: clean, functional code with minimal dependencies is most helpful. Complex code can make it tougher to pinpoint the exact issue. Sometimes, simply going through the process of creating a minimal reproduction can even clarify the problem itself! Thanks for your understanding! 🙇🏼 |
@michelengelen I couldn't find a way to consistently reproduce it in my application. Sometimes it happens and sometimes it doesn't. I found this from two days ago. It seems to be the same problem I'm facing. |
Could be, but without a solid reproduction which we can look into this is not possible for us to fix. Take this as an example: DEMO I use a |
@nicolasfripp Closed the pr because it started working on latest version(was on 7.25.0 then switched to 7.27.0 and it started working). But I got the same error again from a different datagrid table. Main problem is its hard to reproduce |
@michelengelen Created a PR to fix this(and 1 other place that triggers this issue for me). Would appreciate if you took a look |
I can't reproduce this anymore (I did previously). How are y'all deleting the rows? Wonder if moving this line up a notch would fix any remaining edge cases, but ideally we should have a reproduction so we don't add unnecessary checks that hide the root cause: mui-x/packages/x-data-grid/src/components/GridRow.tsx Lines 299 to 301 in f663e70
Above this block:
|
Steps to reproduce
Steps:
Current behavior
When i remove the last element of the grid, this error is shown in the console.
Expected behavior
I expect to remove the last element and do not receive any errors.
Context
The issue is shown if I add this prop to the DataGridPro component:
getRowClassName={(params) => (params.indexRelativeToCurrentPage % 2 === 0 ? "Mui-even" : "Mui-odd")}
This is happening in the last version of the DataGridPro. If I use for example,
"@mui/x-data-grid-pro": "^7.23.5",
no error is shown.Your environment
npx @mui/envinfo
Search keywords: getRowClassName DataGridPro MissingRowIdError
The text was updated successfully, but these errors were encountered: