MedicOneSystems / MedicOneSystems/livewire-datatables

Inconsistent row selection

Open
#52 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
1.2k
Forks
257
PR merge metrics
No merged PRs in 30d

Description

Go to complex example and try rapidly select rows.
That what you will see:

ezgif-7-d4e2ddcb017b

This is probably happens because of how livewire works - AJAX requests (second ajax request could be finished before first one).

Though it should be fixed IMO since it could lead to errors and confusion.

As suggestion, loading overlay could be placed that prevents pressing next selection before first one finsihed to render.

P.S. Great library.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the rapid row-selection behavior at the complex example URL and observe the overlapping AJAX requests shown in the report. Trace the selection and loading behavior from that example; done means rapid selections remain consistent, or further selections are prevented until the prior update finishes.

Written by the indexing model from the issue text.

Assessment

Tech stack
laravel, php, tailwind
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.