lbry-desktop/flow-typed
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
..
npm flow fixes 2020-12-16 10:52:22 -05:00
18nj.js pr feedback 2019-10-01 01:48:43 -04:00
Blocklist.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
bluebird.js Fix Flow config 2017-12-07 17:04:19 -03:00
Claim.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
classnames.js Fix Flow config 2017-12-07 17:04:19 -03:00
CoinSwap.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
Collections.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
Comment.js Block: pass comment ID for deletion when being blocked. (#255) 2021-11-09 09:43:02 -05:00
content.js Fix floating player issues (#7073) 2021-09-13 11:24:35 -04:00
electron.js Fix Flow config 2017-12-07 17:04:19 -03:00
File.js move file actions from lbry-redux 2021-10-06 10:22:49 -04:00
formik.js Fix Flow config 2017-12-07 17:04:19 -03:00
homepage.js pinning 2021-07-22 23:24:55 -04:00
i18n.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
Lbry.js Add ability to have claim searches auto-fetch up to 3 pages. (#504) 2021-12-20 13:25:16 -05:00
LbryFirst.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
lbryURI.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
livestream.js Add stream start to active live streams, and refactor how data active claim is stored in redux 2021-12-22 13:50:49 -05:00
location.js 0.36.0 sdk changes 2019-04-24 10:02:52 -04:00
notification.js delete duplicate flow type files (#105) 2021-10-20 13:33:31 -05:00
publish.js Upload: tab sync and various fixes (#428) 2021-12-07 09:48:09 -05:00
qrcode.react.js Fix Flow config 2017-12-07 17:04:19 -03:00
react-markdown.js implement app redesign 2018-03-26 14:32:43 -07:00
react-modal.js implement app redesign 2018-03-26 14:32:43 -07:00
react-paginate.js implement app redesign 2018-03-26 14:32:43 -07:00
react-simplemde-editor.js implement app redesign 2018-03-26 14:32:43 -07:00
react-transition-group.js implement app redesign 2018-03-26 14:32:43 -07:00
redux.js delete duplicate flow type files (#105) 2021-10-20 13:33:31 -05:00
Reflector.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
reselect.js implement app redesign 2018-03-26 14:32:43 -07:00
reward.js feat: daily reward 2019-09-05 09:40:42 -04:00
search.js Add back support for Winning Uri 2021-12-09 15:35:40 -05:00
shapeshift.io.js Fix Flow config 2017-12-07 17:04:19 -03:00
subscription.js Feat publish replays on master (#5863) 2021-04-14 00:06:11 -04:00
sync.js Sync: handle fast-actions being reverted 2021-12-29 10:32:38 -05:00
Tags.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
Transaction.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
Txo.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
user.js make flow shut up 2021-07-05 10:02:03 -04:00
web-file.js fix WebFile flow type 2020-08-13 11:11:23 -04:00
web.js replace insufficient credits modal with inline ui elements 2019-04-03 00:17:00 -04:00