d7e3127e65
## 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. |
||
---|---|---|
.. | ||
app.js | ||
blocked.js | ||
claims.js | ||
coinSwap.js | ||
collections.js | ||
comments.js | ||
content.js | ||
file.js | ||
file_info.js | ||
livestream.js | ||
notifications.js | ||
publish.js | ||
reactions.js | ||
reportContent.js | ||
rewards.js | ||
search.js | ||
settings.js | ||
subscriptions.js | ||
sync.js | ||
tags.js | ||
user.js | ||
wallet.js | ||
websocket.js |