Skip to content
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] Lazyloading and sorting crash #11873

Closed
PontusAxelsson opened this issue Jan 31, 2024 · 1 comment
Closed

[data grid] Lazyloading and sorting crash #11873

PontusAxelsson opened this issue Jan 31, 2024 · 1 comment
Labels
component: data grid This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists

Comments

@PontusAxelsson
Copy link

PontusAxelsson commented Jan 31, 2024

Steps to reproduce

Link to live example: (required)

Steps:

  1. Click sorting
  2. Drag to bottom
  3. Click other sorting
  4. Drag to top
  5. If no error, repeat from step 1 until crash

Current behavior

Sorting stops working with this console.log error:
8006-80a35f9dc9f20fe2.js:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'type')
at 8006-80a35f9dc9f20fe2.js:1:307270
at Array.filter ()
at Object.unstable_replaceRows (8006-80a35f9dc9f20fe2.js:1:307231)
at demo-90efa27c4d6f0ff2.js:1:21461
at tryCatch (_app-186bd6b5d6d26ab4.js:100:43886)
at b.value (_app-186bd6b5d6d26ab4.js:100:43650)
at Generator.next (_app-186bd6b5d6d26ab4.js:100:44376)
at asyncGeneratorStep (_app-186bd6b5d6d26ab4.js:100:39077)
at _next (_app-186bd6b5d6d26ab4.js:100:39282)

Expected behavior

Should be able to sort with lazyloading and should not crash

Context

I get the same error as on the official example page. All settings for mui/x datatable set to "server"

Your environment

npx @mui/envinfo
  Chrome Version 120.0.6099.129 (Official Build) (64-bit)

Order ID or Support key 💳 (optional)

61657

Search keywords: lazyloading sorting

@PontusAxelsson PontusAxelsson added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jan 31, 2024
@michelengelen
Copy link
Member

michelengelen commented Jan 31, 2024

Duplicate of #11865

@michelengelen michelengelen added bug 🐛 Something doesn't work duplicate This issue or pull request already exists component: data grid This is the name of the generic UI component, not the React module! and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 31, 2024
@michelengelen michelengelen changed the title Lazyloading and sorting crash [data grid] Lazyloading and sorting crash Jan 31, 2024
@michelengelen michelengelen closed this as not planned Won't fix, can't repro, duplicate, stale Feb 2, 2024
@michelengelen michelengelen marked this as a duplicate of #11865 Feb 11, 2024
@oliviertassinari oliviertassinari removed the bug 🐛 Something doesn't work label Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants