lbry-desktop/ui/component
infinite-persistence 4a8c08c8bf
Fix scroll position not restored when doing Back on Desktop (#6842)
## Ticket
6743: Desktop: "Back" in Following Page no longer restores scroll position

## Issue
This was a side-effect of "6609 claimListDiscover: don't re-render until query is done". That PR did not handle the case of navigating backwards, which typically would just need to display past results. It ended up always starting with a blank list on mount, so the scroll position could not be restored correctly.

I don't know why it still worked on Web/Chrome -- maybe the latest browser knows how to move to desired scroll position when the height is available.

## Change
If navigating backwards, initialize the final URI list with the previous result. It is almost always correct, and if not, will be corrected in the effects. This saves us one re-render when navigating backwards too.
2021-08-16 16:45:04 -04:00
..
abandonedChannelPreview allow unsubscribe from deleted channels by navigating from sidebar 2021-04-30 11:06:34 -04:00
app oops 2021-08-06 12:27:37 -04:00
autoplayCountdown wip 2021-06-08 13:25:52 -04:00
button use aria-hidden on all icons by default 2021-07-14 13:44:22 -05:00
cardVerify updated code 2021-07-03 14:42:37 -04:00
channelAbout
channelBlockButton Moderator Delegation GUI 2021-06-18 15:46:51 -04:00
channelContent force has source channel page 2021-07-26 14:17:52 -04:00
channelDiscussion Restore comment pagination 2021-07-16 10:54:12 -04:00
channelEdit Rename default import/exports for clarity in text search (no functional change) 2021-07-09 08:40:26 +08:00
channelMuteButton Rename default import/exports for clarity in text search (no functional change) 2021-07-09 08:40:26 +08:00
channelSelector Rename default import/exports for clarity in text search (no functional change) 2021-07-09 08:40:26 +08:00
channelStakedIndicator
channelThumbnail default avatar config 2021-07-22 09:44:57 -04:00
channelTitle
claimAbandonButton wip 2021-06-08 13:25:52 -04:00
claimAuthor wip 2021-06-08 13:25:52 -04:00
claimCollectionAdd i18n and various minor fixes 2021-06-17 17:05:24 +08:00
claimCollectionAddButton Fix icon color 2021-08-03 13:23:31 -04:00
claimEffectiveAmount
claimInsufficientCredits
claimLink Revert lazy-loading videojs 2021-07-06 17:04:16 +08:00
claimList Fill in remaining Recsys fields 2021-08-03 09:34:36 -04:00
claimListDiscover Fix scroll position not restored when doing Back on Desktop (#6842) 2021-08-16 16:45:04 -04:00
claimListHeader wip 2021-06-08 13:25:52 -04:00
claimMenuList Fix delete option broken / missing 2021-08-11 10:07:43 -04:00
claimPreview fix collection preview links 2021-08-10 10:52:46 -04:00
claimPreviewSubtitle
claimPreviewTile Improve style 2021-08-06 15:07:10 -04:00
claimPreviewTitle
claimProperties wip 2021-06-08 13:25:52 -04:00
claimRepostAuthor
claimSupportButton
claimTags wip 2021-06-08 13:25:52 -04:00
claimTilesDiscover no limit on stream types for following 2021-08-02 16:14:33 -04:00
claimType wip 2021-06-08 13:25:52 -04:00
claimUri
collectionActions wip 2021-06-08 13:25:52 -04:00
collectionContentSidebar Fix currently active playing item on playlist 2021-07-29 14:55:52 -04:00
collectionEdit Rename default import/exports for clarity in text search (no functional change) 2021-07-09 08:40:26 +08:00
collectionMenuList Rename default import/exports for clarity in text search (no functional change) 2021-07-09 08:40:26 +08:00
collectionPreviewOverlay Rename default import/exports for clarity in text search (no functional change) 2021-07-09 08:40:26 +08:00
collectionPreviewTile thumbnail fix 2021-06-14 11:55:50 -04:00
collectionSelectItem Add watch later hover action and Favorites 2021-07-14 11:41:36 -04:00
collectionsListMine Add watch later hover action and Favorites 2021-07-14 11:41:36 -04:00
comment Comment badge to reflect mod and admin status. 2021-08-16 10:08:56 +08:00
commentCreate CommentCreate: handle minimum tips and hyperchat 2021-08-12 14:51:42 +08:00
commentMenuList Add confirmation on comment removal 2021-07-30 10:24:04 -04:00
commentReactions commentReactions recon ma 2021-07-20 11:17:44 -04:00
commentsList Comment badge to reflect mod and admin status. 2021-08-16 10:08:56 +08:00
commentsReplies Comment badge to reflect mod and admin status. 2021-08-16 10:08:56 +08:00
common Comment badge to reflect mod and admin status. 2021-08-16 10:08:56 +08:00
copyableText
creatorAnalytics fix upload button on creator analytics: #6323 2021-07-13 18:09:09 -04:00
dateTime DateTime: avoid unnecessary update (#6110) 2021-05-24 18:29:58 -04:00
emailCollection
embedPlayButton
embedTextArea
errorBoundary Don't lazy-load components in ErrorBoundary 2021-07-08 14:52:29 +08:00
expandable
fileActions fileActions recon 2021-07-21 18:37:43 -04:00
fileDescription wip 2021-06-08 13:25:52 -04:00
fileDetails wip 2021-06-08 13:25:52 -04:00
fileDownloadLink fix file actions accessibility 2021-07-15 15:14:21 -05:00
fileDrop use aria-hidden for filedrop component 2021-07-13 15:31:42 -05:00
filePrice
fileReactions file reactions recon 2021-07-28 08:12:29 -04:00
fileRender Fix invalid semicolon 2021-07-09 21:28:58 +08:00
fileRenderDownload Use sentence case for all card titles 2020-09-29 17:12:32 -04:00
fileRenderFloating fix colon handling 2021-07-15 17:48:02 -04:00
fileRenderInitiator Fix stuck video poster when switching videos 2021-06-26 01:05:23 +08:00
fileRenderInline Revert lazy-loading videojs 2021-07-06 17:04:16 +08:00
fileSubtitle fileSubtitle recon 2021-07-22 12:09:54 -04:00
fileThumbnail Fix missing file-thumbnail in Notifications 2021-07-29 15:56:42 +08:00
fileTitle
fileTitleSection use ENABLE_MATURE for fileTitleSection 2021-07-06 16:06:58 -04:00
fileType wip 2021-06-08 13:25:52 -04:00
fileValues
fileViewCount some recon (#6532) 2021-07-18 13:06:52 -04:00
fileViewerEmbeddedTitle logo component on embeds/embeds ended 2021-07-27 15:13:29 -04:00
fileWatchLaterLink Merge branch 'master' into accessibility 2021-07-20 12:24:36 -05:00
formFieldPrice
header Merge branch 'master' into accessibility 2021-07-28 23:47:42 -05:00
hiddenNsfwClaims
homepageSelector
i18nMessage
IframeReact
invited flow fixes 2020-12-16 10:52:22 -05:00
inviteList
inviteNew wip 2021-06-08 13:25:52 -04:00
lastReleaseChanges prevent release notes from extending beyond height of app 2021-03-18 18:17:10 -04:00
livestreamComment Comment badge to reflect mod and admin status. 2021-08-16 10:08:56 +08:00
livestreamComments Comment badge to reflect mod and admin status. 2021-08-16 10:08:56 +08:00
livestreamLayout livestream api constant rename 2021-07-28 16:51:11 -04:00
livestreamLink limit claim_search results on livestreamLink 2021-08-01 09:13:25 -04:00
livestreamList livestream api constant rename 2021-07-28 16:51:11 -04:00
loadingBarOneOff Use env for loading-bar color instead of hardcoded. 2021-06-29 21:01:14 +08:00
loginGraphic FileThumbnail: don't go through optimizer if GIF 2021-06-23 14:15:37 -04:00
logo naming 2021-08-03 13:38:17 -04:00
markdownLink Rename default import/exports for clarity in text search (no functional change) 2021-07-09 08:40:26 +08:00
nagContinueFirstRun Rename default import/exports for clarity in text search (no functional change) 2021-07-09 08:40:26 +08:00
navigationButton
navigationHistory
navigationHistoryItem
navigationHistoryRecent
notification fix notification menu button styles 2021-07-30 00:11:18 -07:00
notificationBubble recon notify components 2021-07-19 22:16:29 -04:00
notificationContentChannelMenu Rename default import/exports for clarity in text search (no functional change) 2021-07-09 08:40:26 +08:00
notificationHeaderButton recon notify components 2021-07-19 22:16:29 -04:00
nudgeFloating
optimizedImage Fix channel-selector thumbnail not updating 2021-07-21 16:38:54 +08:00
page improve header accessibility 2021-07-14 22:08:30 -05:00
postEditor
postViewer Improve CLS on Posts 2021-07-22 10:38:01 +08:00
previewLink CodeSplit: Initial work 2021-06-25 16:00:44 +08:00
previewOverlayProperties remove sub heart on collections 2021-06-16 13:01:30 -04:00
privacyAgreement
publishAdditionalOptions Rename default import/exports for clarity in text search (no functional change) 2021-07-09 08:40:26 +08:00
publishBid Fix amountNeededForTakeover message for bids. 2021-08-06 14:16:38 -04:00
publishDescription
publishFile pubfile copy 2021-07-21 16:18:46 -04:00
publishForm livestream api constant rename 2021-07-28 16:51:11 -04:00
publishFormErrors
publishName Fix amountNeededForTakeover message for bids. 2021-08-06 14:16:38 -04:00
publishPending
publishPrice new lbc icon 2020-09-29 17:12:32 -04:00
publishReleaseDate i18n update request from translators 2021-06-13 15:46:18 +08:00
publishSettings
recommendedContent Fill in remaining Recsys fields 2021-08-03 09:34:36 -04:00
reportContent remove emojis from reporting (#6042) 2021-05-12 10:19:45 -04:00
repostCreate Reuse BidHelpText for reposts 2021-08-11 18:50:40 -07:00
rewardAuthIntro
rewardLink fix accessibility issue on rewards page #5991 2021-07-20 12:14:28 -05:00
rewardListClaimed
rewardSummary
rewardTile fix accessibility issue on rewards page #5991 2021-07-20 12:14:28 -05:00
rewardTotal
router Revert "move stuff to web (#6537)" 2021-07-19 10:12:57 -04:00
searchOptions Remove unused items 2021-07-14 11:13:13 +08:00
searchTopClaim
selectAsset small i18n fixes 2021-06-18 19:08:08 -04:00
selectChannel
selectThumbnail Recon 7 6 b (#6418) 2021-07-07 14:21:11 -04:00
settingAccountPassword
settingAutoLaunch
settingClosingBehavior
settingCommentsServer Option to change commments-server (desktop) 2021-08-12 14:01:22 +08:00
settingLanguage i18n: Added missing state handling for RTL languages (#6275) 2021-07-16 13:51:08 -04:00
settingWalletServer
shareButton bring in 'notifications' state from lbry-redux 2020-06-16 09:56:32 -04:00
sideNavigation Merge branch 'master' into accessibility 2021-07-21 20:59:12 -05:00
skipNavigationButton add SkipNavigationButton to its own file 2021-07-20 19:31:26 -05:00
snackBar
socialShare use env for twitter account 2021-08-01 09:39:16 -04:00
spinner
splash
subscribeButton Fix notification bell toast 2021-07-12 11:03:11 -04:00
supportsLiquidate
syncEnableFlow
syncFatalError
syncPassword More master reconciliation 2021-04-27 23:05:38 -04:00
syncToggle
tag Tag: Add "type=flow" that reflows to multiline with gaps. 2020-10-02 10:25:17 -04:00
tagsSearch Moderator Delegation GUI 2021-06-18 15:46:51 -04:00
tagsSelect
theme
thumbnailPicker i18n and various minor fixes 2021-06-17 17:05:24 +08:00
transactionListTable wip 2021-06-08 13:25:52 -04:00
transactionListTableItem
txoList
uriIndicator use new aria label format for claim preview 2021-07-16 01:53:38 -05:00
userChannelFollowIntro Do not count auto follow channels for UserChannelFollowIntro. 2021-08-13 17:07:01 -04:00
userEmail
userEmailNew enable sign up in desktop 2021-06-26 11:56:32 -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
userPasswordReset
userPasswordSet Use sentence case for all card titles 2020-09-29 17:12:32 -04:00
userPhoneNew
userPhoneVerify More master reconciliation 2021-04-27 23:05:38 -04:00
userSignIn
userSignInPassword
userSignOutButton
userSignUp use config for showTagsIntro 2021-07-19 22:46:43 -04:00
userTagFollowIntro
userVerify sms copy 2021-07-21 08:11:33 -04:00
videoDuration add more info for claim-preview-tile aria label 2021-07-15 18:12:11 -05:00
viewers Anthony watchman integration (#6799) 2021-08-10 16:42:50 -04:00
walletAddress ReceiveLBC: switch from Modal to Page 2021-04-13 14:02:25 -04:00
walletBackup
walletBalance i18n - fiat 2021-07-06 14:53:23 -04:00
walletFiatAccountHistory Move transactions from Settings to Wallet (#6871) 2021-08-13 13:59:43 -04:00
walletFiatBalance Move transactions from Settings to Wallet (#6871) 2021-08-13 13:59:43 -04:00
walletFiatPaymentBalance Move transactions from Settings to Wallet (#6871) 2021-08-13 13:59:43 -04:00
walletFiatPaymentHistory various small bug fixes 2021-08-13 14:23:31 -04:00
walletSend i18n update 2021-06-01 13:33:58 -04:00
walletSendTip Fix account verification check + copy on tip page (#6884) 2021-08-13 20:40:24 -04:00
walletSpendableBalanceHelp lint 2021-07-17 13:19:33 -04:00
walletSwap i18n update (#6039) 2021-05-15 02:01:00 -04:00
walletTipAmountSelector Fix account verification check + copy on tip page (#6884) 2021-08-13 20:40:24 -04:00
webUploadList change uploads copy 2021-07-20 10:33:48 -04:00
wunderbar Reload page when trying to open stale chunks 2021-07-08 15:06:09 +08:00
wunderbarSuggestion ChannelThumbnail improvements 2021-07-05 16:04:10 +08:00
wunderbarSuggestions Remove unused items 2021-07-14 11:13:13 +08:00
wunderbarTopSuggestion
youtubeBadge
youtubeTransferStatus yt recon 2021-07-20 10:37:46 -04:00
yrbl
yrblWalletEmpty Combine Buy and Swap 2021-06-05 10:07:38 +08:00
zoomableImage