lbry-desktop/ui/redux/actions
infinite-persistence d7e3127e65 Sync: handle fast-actions being reverted
## Repro
1. Follow a channel.
2. When `preference_set` is sent, unfollow the channel.
3. A few seconds later, the final setting reflects (1) instead of (2).

The current sync loop involves doing a final `sync/get` at the end. While not necessary for the scenario above, the code flow covers various cases, so it's still needed for now.

## Approach
Implement an abort mechanism to the sync-loop.

When syncing from the `buildSharedStateMiddleware` loop, generate an ID for each sync session, and only store the latest one. Pass the ID to the completion-callback (and other places as needed), so we can check if our session is still the latest one before executing the callback.

The check for invalidation can also be placed in more places to cut off the sync process earlier, but it's only done for 2 critical places for now.
2021-12-29 10:32:38 -05:00
..
app.js Sync: handle fast-actions being reverted 2021-12-29 10:32:38 -05:00
blocked.js Additional pop up menu options 2021-06-15 13:47:56 -04:00
claims.js Add ability to have claim searches auto-fetch up to 3 pages. (#504) 2021-12-20 13:25:16 -05:00
coinSwap.js CoinSwap: websocket + multi-coin 2021-04-13 14:02:25 -04:00
collections.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
comments.js Block: pass comment ID for deletion when being blocked. (#255) 2021-11-09 09:43:02 -05:00
content.js Kill makeSelectClientSetting 2021-11-23 12:29:53 +08:00
file.js Cost Info selector fixes 2021-11-19 16:01:25 +08:00
file_info.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
livestream.js throw cust error only when failing to parse json 2021-12-23 20:59:08 -05:00
notifications.js Defer notification/categories 2021-12-29 09:15:06 -05:00
publish.js Revert "Switch thumbnail server: spee.ch --> vanwanet" 2021-12-16 16:16:22 +08:00
reactions.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
reportContent.js Add 'ReportContent' actions/reducers/selectors 2021-04-21 10:49:31 -04:00
rewards.js Change logic for daily reward claiming to weekly 2021-12-23 02:40:58 -05:00
search.js Add back support for Winning Uri 2021-12-09 15:35:40 -05:00
settings.js Kill makeSelectClientSetting 2021-11-23 12:29:53 +08:00
subscriptions.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
sync.js Sync: handle fast-actions being reverted 2021-12-29 10:32:38 -05:00
tags.js Remove content_tags and related functions 2021-12-13 11:54:53 -05:00
user.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
wallet.js [New Feature] Stickers (#131) 2021-10-28 16:25:34 -04:00
websocket.js Livestream: implement Pinned Comments 2021-08-12 10:39:21 +08:00