lbry-desktop/ui
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
..
component Improve Sticker Superchat display 2021-12-29 09:37:05 -05:00
constants Sync: handle fast-actions being reverted 2021-12-29 10:32:38 -05:00
effects Fix "you are offline" nag being stuck 2021-12-22 12:41:05 +08:00
modal Refactor header Component, split into smaller components and remove what is unused 2021-12-21 16:36:16 -05:00
page Defer notification/categories 2021-12-29 09:15:06 -05:00
redux Sync: handle fast-actions being reverted 2021-12-29 10:32:38 -05:00
scss Improve Sticker Superchat display 2021-12-29 09:37:05 -05:00
util OG: Skip 'data:image' when generating cards.odysee.com urls 2021-12-22 10:03:43 -05:00
analytics.js Remove content_tags and related functions 2021-12-13 11:54:53 -05:00
app.js
comments.js Comment Moderation - time based bans 2021-09-03 07:17:56 +08:00
i18n.js Revert "Simplify language lists" 2021-04-06 15:42:27 -04:00
index.jsx [oEmbed] some changes and fixes (#392) 2021-12-01 10:36:52 -05:00
lbry.js Un-authenticated resolve (#341) 2021-11-24 09:33:34 -05:00
logWarningConsoleMessage.js new lbc icon 2020-09-29 17:12:32 -04:00
native.js working 2020-12-16 10:52:22 -05:00
reducers.js Support resume-able upload via tus (#186) 2021-11-10 13:16:16 -05:00
rewards.js Change logic for daily reward claiming to weekly 2021-12-23 02:40:58 -05:00
store.js Sync: handle fast-actions being reverted 2021-12-29 10:32:38 -05:00