x-datagrid with Next.js and dynamic data does not display data on pages >= 2 #5048
Closed
2 tasks done
Labels
component: data grid
This is the name of the generic UI component, not the React module!
Duplicates
Latest version
Current behavior 😯
x-grid (and pro) only shows the last row on pages after the first when the rows prop changes on page change (such as with serverside pagination enabled).
This only occurs with Next.JS. I've tried to recreate this example with vanilla react and can't.
Edit: I've also found some rows flicker and swap... unsure if this is also relevant?
Expected behavior 🤔
The grid should show all rows on all pages.
Steps to reproduce 🕹
Code sandbox here: https://codesandbox.io/s/nextjs-mui-datagrid-not-displaying-rows-zznwxc?file=/pages/index.tsx
Steps:
rows
having 5 entriesContext 🔦
I need to use serverside pagination on our application as datasets sent to the client are becoming too large.
This bug is preventing me from releasing the next update.
Your environment 🌎
`npx @mui/envinfo`
Browsers used are Brave and Chrome
Order ID 💳 (optional)
30466
The text was updated successfully, but these errors were encountered: