rappasoft / laravel-livewire-tables

A dynamic table component for Laravel Livewire
https://rappasoft.com/docs/laravel-livewire-tables/v2/introduction
MIT License
1.74k stars 329 forks source link

Fast bulk selecting leads to problems #266

Closed spekulatius closed 3 years ago

spekulatius commented 3 years ago

Hello @rappasoft

I've noticed there is an issue when bulk selecting items too fast:

https://user-images.githubusercontent.com/8433587/116844880-6b45b600-abf5-11eb-9eff-e06422af6485.mp4

It looks like the call the backend is too slow. Maybe it needs to be decoupled to work more reliable?

Cheers, Peter

rappasoft commented 3 years ago

Not sure if there's too much I can do, if I add a defer then the row showing how many are selected never shows up.

I added a disabled delay on develop, see if that makes a difference for you: https://github.com/rappasoft/laravel-livewire-tables/commit/ab927ca6431ebf6df5b30efac64294408ba06909

spekulatius commented 3 years ago

I've tried the current develop branch and it made the selecting more reliable. I'll keep the branch to see how it's going. Thank you.