lbry-desktop/ui/redux/selectors
infinite-persistence 6f8758c819
Fix and optimize makeSelectIsSubscribed (#273)
## Issues with `makeSelectIsSubscribed`
- It will not return true if the uri provided is canonical, because the compared subscription uri is in permanent form. This was causing certain elements like the Heart to not appear in claim tiles.
- It is super slow for large subscriptions not just because of the array size + being a hot selector, but also because it is looking up the claim twice (not memo'd) and also calling `parseURI` to determine if it's a channel, which is unnecessary if you already have the claim.

## Changes
- Optimize the selector to only look up the claim once, and make operations using already-obtained info.
2021-11-12 09:47:07 -05:00
..
app.js Fix memo: stake indicator 2021-11-11 10:23:28 +08:00
blocked.js Skip muted list update if no change 2021-10-19 21:15:26 +08:00
claims.js Optimize selectClaimIsMine 2021-11-11 16:10:06 +08:00
coinSwap.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00
collections.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00
comments.js Fix selectCommentIdsForUri 2021-11-10 17:35:30 +08:00
content.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00
file_info.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00
livestream.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00
notifications.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00
publish.js Support resume-able upload via tus (#186) 2021-11-10 13:16:16 -05:00
reactions.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00
reportContent.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00
rewards.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00
search.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00
settings.js Revert "Code-split homepages" 2021-10-28 01:33:46 +08:00
subscriptions.js Fix and optimize makeSelectIsSubscribed (#273) 2021-11-12 09:47:07 -05:00
sync.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00
tags.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00
user.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00
wallet.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00