lbry-desktop/ui/constants
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
..
abandon_states.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
action_types.js Sync: handle fast-actions being reverted 2021-12-29 10:32:38 -05:00
claim.js Remove duplicate claim utilities 2021-11-16 08:59:07 +08:00
claim_search.js Feature livestream scheduling (#458) 2021-12-16 16:59:13 -05:00
classnames.js Move MAIN_CLASS to constants file for better code-splitting. 2021-12-09 20:58:23 -08:00
collections.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
comment.js List own comments (#7171) 2021-10-01 08:10:27 -04:00
community_channels.js Update spanish channels 2021-12-22 10:01:55 -05:00
daemon_settings.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
email.js simpler email regex 2019-11-18 14:50:29 -05:00
emotes.js Stickers/emojis fall out / improvements (#220) 2021-11-05 15:31:51 -04:00
errors.js Odysee specific changes and other misc improvements (#219) 2021-11-03 15:47:19 -04:00
file_render_modes.js Enable PDF Viewer in App 2021-01-28 10:21:35 -05:00
form-field.js some recon (#6532) 2021-07-18 13:06:52 -04:00
icons.js Switch Logo from images to icons 2021-12-21 16:36:16 -05:00
keycodes.js Consolidate keycode constants 2021-09-10 09:00:44 +08:00
language-migrations.js Revert "Simplify language lists" 2021-04-06 15:42:27 -04:00
languages.js Tagalog Language Fix (#6951) 2021-08-25 10:19:16 -04:00
licenses.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
livestream.js Temporarily adjust upcoming buffer to 15 min + 5 min cache time (#518) 2021-12-16 17:54:12 -05:00
modal_types.js Refactor header Component, split into smaller components and remove what is unused 2021-12-21 16:36:16 -05:00
moonpay.js moonpay 2020-06-03 14:16:43 -04:00
navigation.js Fill in remaining Recsys fields 2021-08-03 09:34:36 -04:00
notifications.js Fix 'weekly watch reminder' target path 2021-12-28 08:31:03 -05:00
pages.js i18n fixes for new category and page titles 2021-11-24 11:11:46 +08:00
pageTitles.js i18n fixes for new category and page titles 2021-11-24 11:11:46 +08:00
publish_types.js livestream related publish fixes 2021-04-22 10:59:03 -04:00
reactions.js creator only like reactions 2020-10-27 12:27:30 -04:00
report_content.js Rick constants 2021-04-21 10:49:31 -04:00
search.js Recommended changes (#7089) 2021-09-16 16:00:44 -04:00
searchable_languages.js claim-search by language 2020-10-29 15:20:18 -04:00
settings.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
shape_shift.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
shared_preferences.js Post-merge updates and fixes 2021-10-19 20:40:07 +08:00
sort_options.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
speech_urls.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
stickers.js remove dave and nick stickers 2021-12-20 12:13:42 -05:00
storage.js Upload: tab sync and various fixes (#428) 2021-12-07 09:48:09 -05:00
stripe.js Chore desktop cleanup (#6896) 2021-08-17 18:34:16 -04:00
subscriptions.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
supported_browser_languages.js Restore lost languages (#5972) 2021-04-28 20:27:04 -04:00
supported_languages.js Tagalog Language Fix (#6951) 2021-08-25 10:19:16 -04:00
supported_sub_languages.js support brazilian portugese 2021-04-16 11:16:25 -04:00
tags.js support embed preference (#7114) 2021-09-18 10:23:30 -04:00
themes.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
thumbnail_upload_statuses.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
token.js Un-authenticated resolve (#341) 2021-11-24 09:33:34 -05:00
transaction_list.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
transaction_types.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
txo_list.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
user.js wip 2021-06-08 13:25:52 -04:00
youtube.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00