lbry-desktop/ui/redux
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
..
actions Optimize selectClaimIsMine 2021-11-11 16:10:06 +08:00
middleware Track duration of startup events 2021-10-22 16:02:21 +08:00
reducers TUS: fix parallel uploads of the same file 2021-11-12 14:32:40 +08:00
selectors Fix and optimize makeSelectIsSubscribed (#273) 2021-11-12 09:47:07 -05:00