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 Only apply Staked Levels to Comments (allow it in Posts) 2021-04-09 11:27:07 -04:00
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 Move getChannelLevel to a selector. Requires accompanying lbry-redux PR. 2021-03-12 10:38:16 -05:00
channelThumbnail default avatar config 2021-07-22 09:44:57 -04:00
channelTitle improve empty states 2020-03-19 12:12:19 -04:00
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 show loading while searching 2020-12-28 15:00:15 -05:00
claimInsufficientCredits new lbc icon 2020-09-29 17:12:32 -04:00
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 use new isLivestream (placeholder stream) selector 2021-03-25 20:14:24 -04:00
claimPreviewTile Improve style 2021-08-06 15:07:10 -04:00
claimPreviewTitle cleanup 2020-03-19 12:12:19 -04:00
claimProperties wip 2021-06-08 13:25:52 -04:00
claimRepostAuthor add channel staked amount indicator on channel thumbnails 2021-02-18 01:14:39 -05:00
claimSupportButton String fix for 'Support Repost' 2021-01-21 14:31:31 -05:00
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 bring in 'notifications' state from lbry-redux 2020-06-16 09:56:32 -04:00
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 Swap: Don't copy the currency, only amount (#5915) 2021-04-21 11:36:34 -04:00
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 all settings constants come from redux 2020-07-27 11:53:14 -04:00
embedPlayButton Revert "Use blank poster and advisory when preview is blocked by insufficient stake." 2021-04-07 00:39:35 -04:00
embedTextArea add referral code to embed links 2020-10-07 16:23:53 -04:00
errorBoundary Don't lazy-load components in ErrorBoundary 2021-07-08 14:52:29 +08:00
expandable remove [data-mode='dark'] 2019-11-22 16:45:33 -05:00
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 new lbc icon 2020-09-29 17:12:32 -04:00
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 better posts styling 2021-03-11 14:12:59 -05:00
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 Tip-unlock: add tooltip and related strings 2021-03-25 15:35:53 -04:00
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 refactor lbrytv web server 2019-11-11 13:27:29 -05:00
header Merge branch 'master' into accessibility 2021-07-28 23:47:42 -05:00
hiddenNsfwClaims fix empty state when mature content is hidden 2019-12-14 02:28:47 -05:00
homepageSelector zh languages 2021-01-11 10:30:26 -05:00
i18nMessage Fix <i18nMessage> not localizing the message. 2020-05-25 10:18:08 -04:00
IframeReact re-enable pdfs on web 2021-04-05 15:06:56 -04:00
invited flow fixes 2020-12-16 10:52:22 -05:00
inviteList update app-strings 2020-10-08 13:15:22 -04:00
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 Allow double-clicking in header to maximize the app. 2020-05-17 21:26:30 -07:00
navigationHistory remove [data-mode='dark'] 2019-11-22 16:45:33 -05:00
navigationHistoryItem cleanup css 2019-12-10 10:08:14 -05:00
navigationHistoryRecent refactor lbrytv web server 2019-11-11 13:27:29 -05:00
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 move nudge to FileReactions and add src param to sign up redirects 2020-11-17 14:32:53 -05:00
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 Markdown editor: Remove character limit 2021-03-21 21:00:16 -04:00
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 call install/new after users select privacy options 2021-01-25 14:24:57 -05:00
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 moar alignment 2020-10-05 14:28:19 -04:00
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 Propagate thumbnail errors to PublishFormData 2021-04-26 12:24:19 -04:00
publishName Fix amountNeededForTakeover message for bids. 2021-08-06 14:16:38 -04:00
publishPending add spinner to web upload message and fix double card issue 2020-09-29 17:12:32 -04:00
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 Add SETTINGS.ENABLE_PUBLISH_PREVIEW 2020-10-02 10:25:17 -04:00
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 add youtube sync to first run 2020-09-29 17:12:32 -04:00
rewardLink fix accessibility issue on rewards page #5991 2021-07-20 12:14:28 -05:00
rewardListClaimed table alignment fixes 2020-09-29 17:12:32 -04:00
rewardSummary Use sentence case for all card titles 2020-09-29 17:12:32 -04:00
rewardTile fix accessibility issue on rewards page #5991 2021-07-20 12:14:28 -05:00
rewardTotal new lbc icon 2020-09-29 17:12:32 -04:00
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 i18n: missing translation + emoji fixes 2021-03-29 15:50:21 -04:00
selectAsset small i18n fixes 2021-06-18 19:08:08 -04:00
selectChannel refactor 'active' channel usage across the app 2021-02-11 10:45:34 -05:00
selectThumbnail Recon 7 6 b (#6418) 2021-07-07 14:21:11 -04:00
settingAccountPassword settings use null when matching current browser language 2020-11-23 14:12:31 -05:00
settingAutoLaunch settings use null when matching current browser language 2020-11-23 14:12:31 -05:00
settingClosingBehavior Add app closing behavior setting 2020-08-20 01:16:11 -04:00
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 all settings constants come from redux 2020-07-27 11:53:14 -04:00
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 use LbcMessage on snackbars 2020-09-29 17:12:32 -04:00
socialShare use env for twitter account 2021-08-01 09:39:16 -04:00
spinner refactor floatingUri to allow inline players in comments/markdown 2020-10-21 15:29:29 -04:00
splash status -> wallet_status on wallet_status call 2021-03-15 16:19:13 -04:00
subscribeButton Fix notification bell toast 2021-07-12 11:03:11 -04:00
supportsLiquidate new lbc icon 2020-09-29 17:12:32 -04:00
syncEnableFlow settings use null when matching current browser language 2020-11-23 14:12:31 -05:00
syncFatalError ensure lbrytv api status is web only 2021-03-16 22:19:03 -04:00
syncPassword More master reconciliation 2021-04-27 23:05:38 -04:00
syncToggle settings use null when matching current browser language 2020-11-23 14:12:31 -05:00
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 sync reducer stuff 2020-10-27 10:17:11 -04:00
theme flow fixes 2020-12-16 10:52:22 -05:00
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 display signing channel for tips 2021-03-08 12:31:19 -05:00
txoList Re-add ability to export transactions (#5899) 2021-04-23 12:10:37 -04:00
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 Use sentence case for all card titles 2020-09-29 17:12:32 -04:00
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 record channel in analytics on first run 2020-11-30 11:50:26 -05:00
userPasswordReset Use sentence case for all card titles 2020-09-29 17:12:32 -04:00
userPasswordSet Use sentence case for all card titles 2020-09-29 17:12:32 -04:00
userPhoneNew Use sentence case for all card titles 2020-09-29 17:12:32 -04:00
userPhoneVerify More master reconciliation 2021-04-27 23:05:38 -04:00
userSignIn sync changes 2020-09-10 14:20:02 -04:00
userSignInPassword Add SITE_HELP_EMAIL in strings to ease Odysee string merge and maintenance. 2021-03-08 11:33:33 -05:00
userSignOutButton add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
userSignUp use config for showTagsIntro 2021-07-19 22:46:43 -04:00
userTagFollowIntro sync reducer stuff 2020-10-27 10:17:11 -04:00
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 rc fixes for electron 9 2020-10-15 19:06:47 -04:00
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 cleanup 2020-12-03 16:18:04 -05:00
youtubeBadge move youtube badge to 'channel about' section 2020-10-06 16:30:03 -04:00
youtubeTransferStatus yt recon 2021-07-20 10:37:46 -04:00
yrbl winning claim style pass 2020-12-16 14:58:30 -05:00
yrblWalletEmpty Combine Buy and Swap 2021-06-05 10:07:38 +08:00
zoomableImage Zoomable image viewer in Markdown (posts and comments) 2021-01-27 10:06:31 -05:00