Data browser does not cancel obsolete long-loading request on sorting field change #2820
Closed
4 tasks done
Labels
state:released-alpha
Released as alpha version
type:bug
Impaired feature or lacking behavior that is likely assumed
Uh oh!
There was an error while loading. Please reload this page.
New Issue Checklist
Issue Description
A long-loading request is not cancelled when changing the sorting field in the data browser. This causes the result of the long-loading request overwriting the result of the currently displayed data, while the field sorting indicator still shows the current sorting.
This is similar to #2671, it may be a separate issue or that the bug was not fixed completely.
Steps to reproduce
fieldA
is an indexed field andfieldB
is a non-indexed field.fieldB
, then immediately on header cell to sort byfieldA
.fieldA
are displayed immediately.fieldB
finished, it will overwrite the results in the data browser while the header row still shows sorted byfieldA
.Expected Outcome
The long-longing request sorted by
fieldB
should be cancelled.If possible, not only should the results not be displayed, but the HTTP request should be cancelled, so the server knows that the client doesn't need the response anymore and avoids sending the response unnecessarily. This doesn't require any changes in Parse Server, it's managed by the underlying HTTP library on the server side.
Environment
Dashboard
7.2.0-alpha.3
The text was updated successfully, but these errors were encountered: