lbry-desktop/ui/redux
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
..
actions doFetchModBlockedList: don't block ui thread (#7674) 2022-08-12 17:23:04 -04:00
middleware lint 2021-10-15 23:49:41 -04:00
reducers Properly handle blacklisted claims. (#7665) 2022-08-09 11:19:23 -04:00
selectors Properly handle blacklisted claims. (#7665) 2022-08-09 11:19:23 -04:00