Drop old txo-fetch results #396

Merged
infinite-persistence merged 1 commit from ip-txo-fetch-id into master 2021-03-24 02:35:10 +01:00
infinite-persistence commented 2021-03-18 15:14:50 +01:00 (Migrated from github.com)

Issue

Closes lbry-desktop 4317: Transaction list shows previously requested data / pages

Approach

A naive approach of creating a random transaction ID for each fetch. The latest ID, stored in state, will be the expected one -- any other transaction results will be dropped.

The loading spinner will continue to spin until the latest ID's results are fetched.

Sample

Example of 3 fast filter switches:
image

??

This assumes there's no quick, built-in way to abort dispatched tasks (only did a quick Google search for it). The ability to abort would speed up the wait-time.

## Issue Closes lbry-desktop [4317: Transaction list shows previously requested data / pages](https://github.com/lbryio/lbry-desktop/issues/4317) ## Approach A naive approach of creating a random transaction ID for each fetch. The latest ID, stored in `state`, will be the expected one -- any other transaction results will be dropped. The loading spinner will continue to spin until the latest ID's results are fetched. ## Sample Example of 3 fast filter switches: ![image](https://user-images.githubusercontent.com/64950861/111640523-393fe680-8837-11eb-8725-d5afb15b895d.png) ## ?? This assumes there's no quick, built-in way to abort dispatched tasks (only did a quick Google search for it). The ability to abort would speed up the wait-time.
jessopb commented 2021-03-24 02:22:28 +01:00 (Migrated from github.com)

currently testing on bob

currently testing on bob
tzarebczan commented 2021-03-24 02:35:07 +01:00 (Migrated from github.com)

<3 looks great!

<3 looks great!
jessopb (Migrated from github.com) reviewed 2021-03-24 04:40:49 +01:00
jessopb (Migrated from github.com) left a comment

👍

:+1:
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-redux#396
No description provided.