-
-
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] loading does not work with dataSource in DataGridPremium #16220
Comments
Could you please make that codesandbox public? |
opps, public now |
All right ... thanks for opening it up. slotProps={{
loadingOverlay: {
variant: 'linear-progress',
noRowsVariant: 'skeleton',
},
}} ... it does. @KenanYusuf what would you expect the default to be? We should definitely align the usage across the different versions! |
Had a quick look, it's getting the correct loading variant, but the internal |
It looks like that some other hook removes the data source's loading overlay. But before any change, I would wait for the input from @MBilalShafi, since he recently moved this hook up (I assume to be before |
Yes, initializing an aggregation model tries to compute the initial aggregation state which uses a data source API method ( The loading state has been reset by the @KenanYusuf @arminmeh Does |
Can we also have skeleton row pill in there? |
Hmm, that could be a decent option indeed. Do you think it'll make sense to add on all the cells or only for the cells with aggregation values being loaded (like Commodities and Quantity in above SS)? For all the cells, it would be more aligned with the design language of the page but it would also show pills for the cells that have no aggregation values. |
For me both are fine. If I have to choose, I would go with the pills only on the cells that will show the value |
This would be ideal!
Generally, I don't think loading skeletons need to be super accurate representations of the data that is loading, but since we know which columns have aggregated values and we are already showing a partial loaded state with the column title and aggregation label, I would go for only showing it in cells with aggregation values. |
Steps to reproduce
Steps:
CleanShot.2025-01-16.at.17.24.55.mp4
Current behavior
"no rows" text displayed
Expected behavior
show loading spinner or skeleton
Context
No response
Your environment
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: