lbry-desktop/ui/modal
jessopb a3398843c2
Optimize selectClaimIsMine (#7370)
Frequently used; top in perf profile

Most of the time, you already have the claim object in the current context. `selectClaimIsMineForUri` will retrieve the claim again, which is wasteful, even if it is memoized (looking up the cache still takes time).

Break apart the logic and added the alternative `selectClaimIsMine` for faster lookup.

Co-authored-by: infinite-persistence <inf.persistence@gmail.com>
2021-12-31 12:52:26 -05:00
..
modalAffirmPurchase integrate all the things 2021-10-15 23:49:41 -04:00
modalAutoGenerateThumbnail integrate all the things 2021-10-15 23:49:41 -04:00
modalAutoUpdateDownloaded Fetch and display last release changes from GitHub in modal upgrade & modal auto update downloaded 2021-02-09 11:04:03 -05:00
modalBlockChannel integrate all the things 2021-10-15 23:49:41 -04:00
modalClaimCollectionAdd wip 2021-06-08 13:25:52 -04:00
modalCommentAcknowledgement Use sentence case for all card titles 2020-09-29 17:12:32 -04:00
modalConfirmAge integrate all the things 2021-10-15 23:49:41 -04:00
modalConfirmThumbnailUpload integrate all the things 2021-10-15 23:49:41 -04:00
modalConfirmTransaction Optimize selectClaimIsMine (#7370) 2021-12-31 12:52:26 -05:00
modalDownloading Use sentence case for all card titles 2020-09-29 17:12:32 -04:00
modalError bring in 'notifications' state from lbry-redux 2020-06-16 09:56:32 -04:00
modalFileSelection integrate all the things 2021-10-15 23:49:41 -04:00
modalFileTimeout integrate all the things 2021-10-15 23:49:41 -04:00
modalFirstReward copy changes 2020-09-29 17:12:32 -04:00
modalFirstSubscription cloud connect 2021-10-22 16:39:45 -04:00
modalImageUpload Thumbnail upload fixes (#6860) 2021-08-24 20:28:23 -04:00
modalIncompatibleDaemon Use sentence case for all card titles 2020-09-29 17:12:32 -04:00
modalMassTipUnlock integrate all the things 2021-10-15 23:49:41 -04:00
modalMobileSearch Moderator Delegation GUI 2021-06-18 15:46:51 -04:00
modalOpenExternalResource Revert "Open the actual image when clicking on the image viewer" 2021-02-19 14:05:51 -05:00
modalPasswordUnsave Use sentence case for all card titles 2020-09-29 17:12:32 -04:00
modalPhoneCollection Use sentence case for all card titles 2020-09-29 17:12:32 -04:00
modalPublish strip out livestreams 2021-10-20 17:05:37 -04:00
modalPublishPreview strip out livestreams 2021-10-20 17:05:37 -04:00
modalRemoveBtcSwapAddress CoinSwap: websocket + multi-coin 2021-04-13 14:02:25 -04:00
modalRemoveCard integrate all the things 2021-10-15 23:49:41 -04:00
modalRemoveCollection integrate all the things 2021-10-15 23:49:41 -04:00
modalRemoveComment Add direct reacting from notifications 2021-08-28 20:48:49 +08:00
modalRemoveFile Optimize selectClaimIsMine (#7370) 2021-12-31 12:52:26 -05:00
modalRepost Modal repost (#7341) 2021-12-12 01:03:00 -05:00
modalRevokeClaim integrate all the things 2021-10-15 23:49:41 -04:00
modalRewardCode new lbc icon 2020-09-29 17:12:32 -04:00
modalRouter Modal repost (#7341) 2021-12-12 01:03:00 -05:00
modalSendTip tip/support marriage 2020-06-15 10:50:01 -04:00
modalSetReferrer fixes restoring wallet page and removing lbry.tv references 2021-11-28 15:06:11 -05:00
modalSignOut Use sentence case for all card titles 2020-09-29 17:12:32 -04:00
modalSocialShare sharing with lId, fix autoplay bump, 2021-06-10 17:47:02 -04:00
modalSupportsLiquidate integrate all the things 2021-10-15 23:49:41 -04:00
modalSyncEnable fix sync clean wallet bug 2020-09-21 14:11:25 -04:00
modalTransactionFailed copy 2021-07-19 17:39:59 -04:00
modalUpgrade Fix scrollbar in upgrade modal (#7076) 2021-09-13 11:35:26 -04:00
modalViewImage Zoomable image viewer in Markdown (posts and comments) 2021-01-27 10:06:31 -05:00
modalWalletDecrypt integrate all the things 2021-10-15 23:49:41 -04:00
modalWalletEncrypt integrate all the things 2021-10-15 23:49:41 -04:00
modalWalletUnlock integrate all the things 2021-10-15 23:49:41 -04:00
modalYoutubeWelcome cut SIMPLE_SITE 2021-10-20 17:05:37 -04:00
modal.jsx add aria-label for modal close button (X) 2021-07-13 18:23:45 -05:00