Skip to content

Checking 2 boxes in quick succession desyncs the local cache with the database #11

Description

@lihaohong6

Reproduction:

  1. Create a table.
  2. Run the following js snippet. Alternatively, in the browser's developer tools, create a new throttling profile with high latency and click on multiple rows in succession.
document.querySelectorAll(".progress-tracker-checkbox-cell .cdx-checkbox__input").forEach((box) => {
    if (box.checked) {
        return;
    }
    box.click();
});
  1. Wait for network requests to resolve.
  2. Only the first row would be shown as checked, though the database would have registered all requests as completed. The local cache is now desynced with the server. Refreshing will not fix it. It can only be cleared by resetting site data.

Downstream: T15535

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions