Closed booni3 closed 4 years ago
what is the benefit of this
This is to ensure page load is not held up by data crunching. In the below example, I have set my speed to a fast 3g connection (It is running locally on valet so is actually slower than this still). Our table has about 2 million rows in total and we are showing 50 at a time. Laravel pagination is not particularly quick. Without defer loading we have a few seconds of nothing before anything loads.
submit a PR pls.
Hey,
Loving the package so far! Have you considered adding a deferred loading to the package? I cannot see any negatives to doing this even by default... but you could also provide a config for it.
I have implemented it by extending your table component as follows (the below method ensures pagination is not broken during loading)
Then at the top of the table livewire component
What do you think?