lbry-desktop/ui/component
infinite-persistence e35069de1c
Cache the processing of ChannelMentionSuggestions (#309)
## Issue
One of the bottlenecks of livestream page.

The component probably needs a re-design:
- Don't perpetually mount -- only mount when activated by the user through "@". This would avoid the heavy processing entirely.
- Better way of resolving uris (too many arrays, too many loops).
- Tom also mentioned that we should not be resolving every commenter as we see encounter them in a livestream. This is currently the case because the component is always mounted.

## Changes
Until the re-design occurs, attempt to cache the heavy processing. Also, trimmed down the amount of loops.
2021-11-17 11:47:56 -05:00
..
abandonedChannelPreview Don't connect to the Redux store when not needed. 2021-10-24 13:04:01 +08:00
app Skip USER_STATE_POPULATE when sync_hash is the same 2021-11-15 07:06:39 -08:00
autoplayCountdown Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
blockList Blocklist: don't show pagination widget when searching. 2021-09-11 21:16:42 +08:00
button support embed preference (#7114) 2021-09-18 10:23:30 -04:00
cardVerify updated code 2021-07-03 14:42:37 -04:00
channelAbout Odysee specific changes and other misc improvements (#219) 2021-11-03 15:47:19 -04:00
channelBlockButton Simplify 'selectClaimIdForUri' 2021-11-10 16:50:26 +08:00
channelContent Optimize selectClaimIsMine 2021-11-11 16:10:06 +08:00
channelDiscussion Lazy-load comment components 2021-11-11 15:09:28 -05:00
channelEdit Simplify makeSelectTitleForUri 2021-11-16 12:23:18 +08:00
channelMentionSuggestion Simplify makeSelectIsUriResolving 2021-11-16 14:32:58 +08:00
channelMentionSuggestions Cache the processing of ChannelMentionSuggestions (#309) 2021-11-17 11:47:56 -05:00
channelMentionTopSuggestion Simplify makeSelectIsUriResolving 2021-11-16 14:32:58 +08:00
channelMuteButton Rename default import/exports for clarity in text search (no functional change) 2021-07-09 08:40:26 +08:00
channelSelector Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
channelStakedIndicator Fix memo: stake indicator 2021-11-11 10:23:28 +08:00
channelThumbnail Simplify makeSelectIsUriResolving 2021-11-16 14:32:58 +08:00
channelTitle Simplify makeSelectTitleForUri 2021-11-16 12:23:18 +08:00
claimAbandonButton Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
claimAuthor Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
claimCollectionAdd Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
claimCollectionAddButton Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
claimEffectiveAmount Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
claimInsufficientCredits Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
claimLink Simplify makeSelectIsUriResolving 2021-11-16 14:32:58 +08:00
claimList ClaimList: fix render due to un-memo'd callback. 2021-10-22 12:20:29 +08:00
claimListDiscover Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
claimListHeader Ensure filter is not expanded when disabled (#153) 2021-10-28 10:51:13 -04:00
claimMenuList Fix and optimize makeSelectIsSubscribed (#273) 2021-11-12 09:47:07 -05:00
claimPreview Simplify makeSelectIsUriResolving 2021-11-16 14:32:58 +08:00
claimPreviewReset selectClaimIsMineForUri to replace makeSelectClaimIsMine 2021-11-10 16:49:12 +08:00
claimPreviewSubtitle Fix memo: isLivestream & isLivestreamActive 2021-11-16 11:52:35 +08:00
claimPreviewTile Simplify makeSelectIsUriResolving 2021-11-16 14:32:58 +08:00
claimPreviewTitle Simplify makeSelectTitleForUri 2021-11-16 12:23:18 +08:00
claimProperties Fix and optimize makeSelectIsSubscribed (#273) 2021-11-12 09:47:07 -05:00
claimRepostAuthor Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
claimSupportButton Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
claimTags Optimize tags and followedTags 2021-10-20 11:29:16 +08:00
claimTilesDiscover Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
claimType Fix memo: isLivestream & isLivestreamActive 2021-11-16 11:52:35 +08:00
claimUri Fix url selectors 2021-11-17 19:57:04 +08:00
collectionActions Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
collectionContentSidebar Optimize selectClaimIsMine 2021-11-11 16:10:06 +08:00
collectionEdit Simplify makeSelectTitleForUri 2021-11-16 12:23:18 +08:00
collectionMenuList Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
collectionPreviewOverlay Simplify makeSelectIsUriResolving 2021-11-16 14:32:58 +08:00
collectionPreviewTile Simplify makeSelectIsUriResolving 2021-11-16 14:32:58 +08:00
collectionSelectItem Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
collectionsListMine improve playlists display (#232) 2021-11-05 21:00:27 -04:00
comment Attempt to speed up sidebar menu for mobile (#283) 2021-11-12 10:59:11 -05:00
commentCreate Optimize selectClaimIsMine 2021-11-11 16:10:06 +08:00
commentMenuList Optimize selectClaimIsMine 2021-11-11 16:10:06 +08:00
commentReactions Optimize selectClaimIsMine 2021-11-11 16:10:06 +08:00
commentsList Optimize selectClaimIsMine 2021-11-11 16:10:06 +08:00
commentsReplies selectClaimIsMineForUri to replace makeSelectClaimIsMine 2021-11-10 16:49:12 +08:00
common [Markdown] Fixes Quote and Fixes Images not showing (#242) 2021-11-08 09:08:22 -05:00
copyableText Restore "Stream Key Button (#7127)" + lint and modifications 2021-09-23 20:13:02 +08:00
creatorAnalytics Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
dateTime re-reselect proof of concept + fix Date selector as first example 2021-10-20 11:29:15 +08:00
emailCollection Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
embedPlayButton Attempt to speed up sidebar menu for mobile (#283) 2021-11-12 10:59:11 -05:00
embedTextArea
errorBoundary Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
expandable Don't connect to the Redux store when not needed. 2021-10-24 13:04:01 +08:00
fileActions Fix memo: isLivestream & isLivestreamActive 2021-11-16 11:52:35 +08:00
fileDescription Optimize selectClaimIsMine 2021-11-11 16:10:06 +08:00
fileDetails Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
fileDownloadLink Optimize selectClaimIsMine 2021-11-11 16:10:06 +08:00
fileDrop Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
filePrice Optimize selectClaimIsMine 2021-11-11 16:10:06 +08:00
fileReactions Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
fileRender Remove desktop video start time analytics 2021-11-15 09:25:58 +08:00
fileRenderDownload Odysee specific changes and other misc improvements (#219) 2021-11-03 15:47:19 -04:00
fileRenderFloating Simplify makeSelectTitleForUri 2021-11-16 12:23:18 +08:00
fileRenderInitiator Optimize makeSelectClaimIsNsfw (and it's surrounding friends) 2021-11-16 10:14:01 +08:00
fileRenderInline Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
fileSubtitle Reduce the chain of renders when Viewer Count is updated 2021-11-17 18:16:01 +08:00
fileThumbnail Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
fileTitle Simplify makeSelectTitleForUri 2021-11-16 12:23:18 +08:00
fileTitleSection Reduce the chain of renders when Viewer Count is updated 2021-11-17 18:16:01 +08:00
fileType Fix memo: isLivestream & isLivestreamActive 2021-11-16 11:52:35 +08:00
fileValues Optimize selectClaimIsMine 2021-11-11 16:10:06 +08:00
fileViewCount Reduce the chain of renders when Viewer Count is updated 2021-11-17 18:16:01 +08:00
fileViewCountInline Fix memo: makeSelectViewCountForUri, makeSelectSubCountForUri 2021-11-16 08:15:24 +08:00
fileViewerEmbeddedTitle Simplify makeSelectTitleForUri 2021-11-16 12:23:18 +08:00
fileWatchLaterLink Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
formFieldPrice
header Transform route-leading menu items to hyperlinks (#191) 2021-11-03 15:50:03 +01:00
hiddenNsfwClaims Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
homepageSelector Move combobox to right | Move "Search only in language" into separate row 2021-08-23 23:45:09 +08:00
i18nMessage Don't connect to the Redux store when not needed. 2021-10-24 13:04:01 +08:00
IframeReact Don't connect to the Redux store when not needed. 2021-10-24 13:04:01 +08:00
invited Fix and optimize makeSelectIsSubscribed (#273) 2021-11-12 09:47:07 -05:00
inviteList
inviteNew FAQ stuff (#109) 2021-10-21 16:21:51 -04:00
lastReleaseChanges
livestreamComment Fix memo: stake indicator 2021-11-11 10:23:28 +08:00
livestreamComments Reduce the chain of renders when Viewer Count is updated 2021-11-17 18:16:01 +08:00
livestreamLayout Attempt to speed up sidebar menu for mobile (#283) 2021-11-12 10:59:11 -05:00
livestreamLink Fix livestream state issues. Create unified long polling mechanism. 2021-11-10 08:21:15 +08:00
livestreamList Don't connect to the Redux store when not needed. 2021-10-24 13:04:01 +08:00
loadingBarOneOff Don't connect to the Redux store when not needed. 2021-10-24 13:04:01 +08:00
loginGraphic FileThumbnail: don't go through optimizer if GIF 2021-06-23 14:15:37 -04:00
logo Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
markdownLink Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
maxPurchasePrice [Content] refactor and grab Max Purchase Price 2021-08-23 23:45:10 +08:00
nagContinueFirstRun Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
navigationButton
navigationHistory
navigationHistoryItem Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
navigationHistoryRecent
notification Lazy-load comment components 2021-11-11 15:09:28 -05:00
notificationBubble recon notify components 2021-07-19 22:16:29 -04:00
notificationContentChannelMenu Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
notificationHeaderButton recon notify components 2021-07-19 22:16:29 -04:00
nudgeFloating
optimizedImage [New Feature] Comment Emotes (#125) 2021-10-27 14:20:47 -04:00
page Fix 'secondary.js' code coverage 2021-11-01 15:25:40 +08:00
playlistsMine improve playlists display (#232) 2021-11-05 21:00:27 -04:00
postEditor Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
postViewer selectClaimIsMineForUri to replace makeSelectClaimIsMine 2021-11-10 16:49:12 +08:00
previewLink Simplify makeSelectIsUriResolving 2021-11-16 14:32:58 +08:00
previewOverlayProperties Fix and optimize makeSelectIsSubscribed (#273) 2021-11-12 09:47:07 -05:00
privacyAgreement Odysee specific changes and other misc improvements (#219) 2021-11-03 15:47:19 -04:00
publishAdditionalOptions Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
publishBid Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
publishDescription Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
publishFile Fix memo: isLivestream & isLivestreamActive 2021-11-16 11:52:35 +08:00
publishForm Fix memo: isLivestream & isLivestreamActive 2021-11-16 11:52:35 +08:00
publishFormErrors Odysee specific changes and other misc improvements (#219) 2021-11-03 15:47:19 -04:00
publishName Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
publishPending Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
publishPrice Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
publishReleaseDate Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
recommendedContent Optimize makeSelectClaimIsNsfw (and it's surrounding friends) 2021-11-16 10:14:01 +08:00
reportContent Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
repostCreate Simplify makeSelectIsUriResolving 2021-11-16 14:32:58 +08:00
rewardAuthIntro
rewardLink fix accessibility issue on rewards page #5991 2021-07-20 12:14:28 -05:00
rewardListClaimed
rewardSummary FAQ stuff (#109) 2021-10-21 16:21:51 -04:00
rewardTile fix accessibility issue on rewards page #5991 2021-07-20 12:14:28 -05:00
rewardTotal
router Simplify makeSelectTitleForUri 2021-11-16 12:23:18 +08:00
searchChannelField Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
searchOptions Remove unused items 2021-07-14 11:13:13 +08:00
searchTopClaim Simplify makeSelectIsUriResolving 2021-11-16 14:32:58 +08:00
selectAsset Fix cover upload ux (#184) 2021-10-29 10:53:46 -04:00
selectChannel Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
selectThumbnail Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
settingAccount Use 'selectHasChannel' instead of the full 'selectMyChannelClaims' 2021-11-08 15:02:44 +08:00
settingAccountPassword Move 'update password' into a subpage 2021-08-23 23:45:31 +08:00
settingAppearance Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
settingAutoLaunch Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
settingClosingBehavior Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
settingCommentsServer Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
settingContent Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
settingLanguage Fix jumpy ui when changing language 2021-09-13 15:44:29 +08:00
settingsRow Add hints if an error occurs subscribing to notifications (#143) 2021-11-01 14:51:23 -04:00
settingsSideNavigation Settings: use 'smooth' instead of 'instant' scroll. 2021-09-13 09:59:11 +08:00
settingSystem FAQ stuff (#109) 2021-10-21 16:21:51 -04:00
settingUnauthenticated Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
settingWalletServer Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
shareButton
sideNavigation Attempt to speed up sidebar menu for mobile (#283) 2021-11-12 10:59:11 -05:00
skipNavigationButton add SkipNavigationButton to its own file 2021-07-20 19:31:26 -05:00
snackBar adjust css for toast message so that it behaves as expected (text truncation via ellipsis) (#7213) 2021-10-04 09:21:59 -04:00
socialShare Simplify makeSelectTitleForUri 2021-11-16 12:23:18 +08:00
spinner
splash Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
subscribeButton Fix url selectors 2021-11-17 19:57:04 +08:00
supportsLiquidate FAQ stuff (#109) 2021-10-21 16:21:51 -04:00
syncEnableFlow Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
syncFatalError
syncPassword More master reconciliation 2021-04-27 23:05:38 -04:00
syncToggle Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
tag Don't connect to the Redux store when not needed. 2021-10-24 13:04:01 +08:00
tagsSearch Moderator Delegation GUI 2021-06-18 15:46:51 -04:00
tagsSelect FAQ stuff (#109) 2021-10-21 16:21:51 -04:00
theme
themeSelector Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
transactionListTable Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
transactionListTableItem Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
txoList FAQ stuff (#109) 2021-10-21 16:21:51 -04:00
uriIndicator Simplify makeSelectIsUriResolving 2021-11-16 14:32:58 +08:00
userChannelFollowIntro Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
userEmail Odysee specific changes and other misc improvements (#219) 2021-11-03 15:47:19 -04:00
userEmailNew FAQ stuff (#109) 2021-10-21 16:21:51 -04:00
userEmailReturning Add sign-in graphics for SIMPLE_SITE 2021-05-27 14:21:16 +08:00
userEmailVerify More master reconciliation 2021-04-27 23:05:38 -04:00
userFirstChannel Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
userPasswordReset
userPasswordSet
userPhoneNew
userPhoneVerify More master reconciliation 2021-04-27 23:05:38 -04:00
userSignIn
userSignInPassword
userSignOutButton
userSignUp Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
userTagFollowIntro
userVerify Odysee specific changes and other misc improvements (#219) 2021-11-03 15:47:19 -04:00
videoDuration Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
viewers Optimize makeSelectClaimIsNsfw (and it's surrounding friends) 2021-11-16 10:14:01 +08:00
walletAddress Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
walletBackup
walletBalance FAQ stuff (#109) 2021-10-21 16:21:51 -04:00
walletFiatAccountHistory i18n 2021-10-15 14:23:40 +08:00
walletFiatBalance i18n - stripe 2021-08-27 13:14:15 +08:00
walletFiatPaymentBalance Move transactions from Settings to Wallet (#6871) 2021-08-13 13:59:43 -04:00
walletFiatPaymentHistory i18n 2021-10-15 14:23:40 +08:00
walletSend Use 'selectHasChannel' instead of the full 'selectMyChannelClaims' 2021-11-08 15:02:44 +08:00
walletSendTip Simplify makeSelectTitleForUri 2021-11-16 12:23:18 +08:00
walletSpendableBalanceHelp [New Feature] Stickers (#131) 2021-10-28 16:25:34 -04:00
walletSwap General-purpose "Confirm" modal 2021-10-29 13:36:27 +08:00
walletTipAmountSelector Fix string (#257) 2021-11-09 15:25:19 -05:00
webUploadList Support resume-able upload via tus (#186) 2021-11-10 13:16:16 -05:00
wunderbar Fix 'secondary.js' code coverage 2021-11-01 15:25:40 +08:00
wunderbarSuggestion Simplify makeSelectIsUriResolving 2021-11-16 14:32:58 +08:00
wunderbarSuggestions Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
wunderbarTopSuggestion Simplify makeSelectIsUriResolving 2021-11-16 14:32:58 +08:00
youtubeBadge Don't connect to the Redux store when not needed. 2021-10-24 13:04:01 +08:00
youtubeTransferStatus FAQ stuff (#109) 2021-10-21 16:21:51 -04:00
yrbl Fix annoying hierarchy error with Yrbl 2021-11-17 10:27:11 +08:00
yrblWalletEmpty Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
zoomableImage