lbry-desktop/ui
infinite-persistence 8a65afb75c
Fix scroll position not restored when doing Back on Desktop
## 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-10 20:49:39 +08:00
..
component Fix scroll position not restored when doing Back on Desktop 2021-08-10 20:49:39 +08:00
constants Fix: Added \ and = to Reserved symbols warning 2021-08-05 11:09:30 -04:00
effects livestream api constant rename 2021-07-28 16:51:11 -04:00
modal Change warning 2021-07-30 10:24:04 -04:00
page fix redirection and normalization of claim urls 2021-08-07 19:23:14 +08:00
redux Refactor Commentron error msg handling 2021-08-10 10:26:58 +08:00
scss Improve style 2021-08-06 15:07:10 -04:00
util rss tests 2021-08-06 17:05:36 -04:00
analytics.js patch devmode for custom lbry api 2021-07-28 11:49:36 -04:00
app.js
comments.js Reactions: switch from SDK to Commentron 2021-07-16 13:41:41 -04:00
i18n.js Revert "Simplify language lists" 2021-04-06 15:42:27 -04:00
index.jsx bugfix 2021-07-29 12:58:25 -04:00
logWarningConsoleMessage.js new lbc icon 2020-09-29 17:12:32 -04:00
native.js working 2020-12-16 10:52:22 -05:00
reducers.js wip 2021-06-08 13:25:52 -04:00
rewards.js When a new reward is acquired, only close modals if the reward comes from reward_code 2021-01-08 08:16:41 -07:00
store.js sync edited playlists 2021-08-03 11:47:54 -04:00