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
Managing skeleton in each row #601
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
why not just add a display:none or something to |
welp, that's a way) honestly, didn't think of it, thank you |
but actually I'm not sure if table will show data if I put display: none on skeleton because judging from your code you show either skeleton or value of cell, not both |
so basically this PR makes some sense |
What are you trying to accomplish? Just to show less rows? The pagination page size handles how many rows show |
No, I have such case - I am loading data bit by bit but I also use rowVirtualization since data is huge but I can't show skeleton for few rows that are currently loading because MaterialReactTable can't handle that so I have created this PR |
Maybe you want to just use the |
The problem is the fact that I need to show all data but part of that data should be with skeletons (because it's still loading), otherwise my data would look ugly (simple empty cells) so using showProgressBars won't do the work (also I don't use isLoading because it's making entire table filled with skeletons) |
Probably you don't really get the Idea since my English is not really good - lazy loading in rowVirtualization, I show all data but load it slowly so user can work with part of it, because he might not need entire data at the moment (plus loading entire data takes a lot of time because it's over 100k objects), so I need to show skeletons for everything except loaded data |
I get that concept, but you can do it without showing skeletons like this example https://www.material-react-table.com/docs/examples/infinite-scrolling |
ok I think I got something that will make us both happy. I want to avoid adding hidden flags like |
@KevinVandy & @Cassage The skeleton is not shown at all when using Try: <MaterialReactTable
columns={[]}
data={[]}
state={{
isLoading: true
}}
enableExpanding
/> |
mb, previous PR was a test version and I accidently used it instead of this one