lbry-desktop/ui/redux/actions
jessopb 1c17ff5dd9
doFetchModBlockedList: don't block ui thread (#7674)
* doFetchModBlockedList: don't block ui thread

doFetchModBlockedList is blocking the ui thread.

Duplicate data in `doFetchModBlockedList::blockListsPerChannel` to about 1000. The tab is dead when function hits, about 4s after reload.

- Yield occasionally using the `setTimeout` method.
- Doing a chunk size of 1 for now so we don't have to yield the inner loop as well (seems good enough). This is just based on a relatively large blocklist size.

- Can't do `await` in a callback, so must change the `forEach` to a `for`.

* yield thread in storeList

Co-authored-by: infinite-persistence <inf.persistence@gmail.com>
2022-08-12 17:23:04 -04:00
..
app.js Prevent .deb packages from being opened with archive manager. (#7502) 2022-07-07 16:48:42 -04:00
blocked.js Additional pop up menu options 2021-06-15 13:47:56 -04:00
claims.js Properly handle blacklisted claims. (#7665) 2022-08-09 11:19:23 -04:00
collections.js Allow renaming collection in view playlist page. 2022-03-29 18:06:55 -04:00
comments.js doFetchModBlockedList: don't block ui thread (#7674) 2022-08-12 17:23:04 -04:00
content.js Add persistent watch time setting. (#7547) 2022-04-21 23:00:57 -04:00
file.js Fix doAbandonClaim (#699) (#7422) 2022-01-19 20:54:01 -05:00
file_info.js integrate all the things 2021-10-15 23:49:41 -04:00
notifications.js integrate all the things 2021-10-15 23:49:41 -04:00
publish.js ody pr 628 - more details in thumb errors (#7429) 2022-01-21 12:06:14 -05:00
reactions.js Optimize selectClaimIsMine (#7370) 2021-12-31 12:52:26 -05:00
reportContent.js Add 'ReportContent' actions/reducers/selectors 2021-04-21 10:49:31 -04:00
rewards.js Sync pre cleanup (#7635) 2022-07-08 14:51:53 -04:00
search.js Bringing in emotes, stickers, and refactors from ody (#7435) 2022-01-24 11:07:09 -05:00
settings.js Testing fixes 0.53.4 (#7600) 2022-06-03 16:09:34 -04:00
subscriptions.js mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
sync.js Remove swap (#7659) 2022-08-02 17:17:00 -04:00
tags.js sync reducer stuff 2020-10-27 10:17:11 -04:00
user.js Sync pre cleanup (#7635) 2022-07-08 14:51:53 -04:00
wallet.js Reconnect to default server if custom server fails. 2022-06-01 17:39:46 -04:00
websocket.js Remove swap (#7659) 2022-08-02 17:17:00 -04:00