lbry-desktop/ui
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
..
component Remove swap (#7659) 2022-08-02 17:17:00 -04:00
constants Remove swap (#7659) 2022-08-02 17:17:00 -04:00
effects bring in styles (#7542) 2022-04-17 13:04:56 -04:00
modal Remove swap (#7659) 2022-08-02 17:17:00 -04:00
page small fixes for blocked (#7669) 2022-08-09 13:13:57 -04:00
redux doFetchModBlockedList: don't block ui thread (#7674) 2022-08-12 17:23:04 -04:00
scss changed the color of the editor-toolbar_hover class (#7642) 2022-07-21 16:58:12 -04:00
util Sync pre cleanup (#7635) 2022-07-08 14:51:53 -04:00
analytics.js Revert "more lbrytv removal" 2022-04-27 18:28:33 -04:00
app.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
comments.js Comment Moderation - time based bans 2021-09-03 07:17:56 +08:00
i18n.js cut SIMPLE_SITE 2021-10-20 17:05:37 -04:00
index.jsx Prevent .deb packages from being opened with archive manager. (#7502) 2022-07-07 16:48:42 -04:00
lbry.js integrate all the things 2021-10-15 23:49:41 -04: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 Remove swap (#7659) 2022-08-02 17:17:00 -04:00
rewards.js integrate all the things 2021-10-15 23:49:41 -04:00
store.js Remove swap (#7659) 2022-08-02 17:17:00 -04:00