lbry-desktop/ui
infinite-persistence 5098b7cd87
RecommendedContent: fix ad-words filtering (#1007)
## Issues
Ad-filtering:
- Filtering was done whether or not ads are injected.
- Constants are repeatedly calculated.
- No short-circuiting in the for-loop.
- No memoization (being called 5-6 times on average due to redux updates, can't avoid that).

Others:
- Potentially passing null claimID to recsys (I think this is the issue that Johnny reported in Slack).

## Changes
- Moved 1-time calculations outside of the function.
- Optimized the filtering function and memoize it.
- Reduce unnecessary props since we are passing the whole `Claim` object already.
- Fix recsys being called when claim is not resolved yet (null claimId).
- Move away from the incorrect `makeSelect*` selectors.
2022-03-02 10:10:29 -05:00
..
component RecommendedContent: fix ad-words filtering (#1007) 2022-03-02 10:10:29 -05:00
constants Use locale/get response to suggest homepage and language switch (#839) 2022-03-02 09:44:01 -05:00
effects [Fix] revert fileRenderFloating vs Mobile change (#937) 2022-02-23 16:13:22 -05:00
modal Use locale/get response to suggest homepage and language switch (#839) 2022-03-02 09:44:01 -05:00
page Use locale/get response to suggest homepage and language switch (#839) 2022-03-02 09:44:01 -05:00
redux Livestream fetch: add language option 2022-02-25 16:53:45 -05:00
scss Use locale/get response to suggest homepage and language switch (#839) 2022-03-02 09:44:01 -05:00
util Fix sub/view count not in compact form for some components 2022-02-26 10:27:25 -05:00
analytics.js More cleanup 2022-01-31 11:39:03 -05:00
app.js
comments.js Remove custom comments server 2022-02-03 10:24:58 -05:00
i18n.js Add env to auto report new strings in console 2022-01-05 00:26:31 -08:00
index.jsx [oEmbed] some changes and fixes (#392) 2021-12-01 10:36:52 -05:00
lbry.js Un-authenticated resolve (#341) 2021-11-24 09:33:34 -05:00
locale.js Use locale/get response to suggest homepage and language switch (#839) 2022-03-02 09:44:01 -05: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 Support resume-able upload via tus (#186) 2021-11-10 13:16:16 -05:00
rewards.js Change logic for daily reward claiming to weekly 2021-12-23 02:40:58 -05:00
store.js Patch to restore position upon returning to video until more fully fleshed out fix can be introduced (#817) 2022-02-07 12:51:26 -05:00