lbry-desktop/ui
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
..
component Fix scroll position not restored when doing Back on Desktop (#6842) 2021-08-16 16:45:04 -04:00
constants Comment badge to reflect mod and admin status. 2021-08-16 10:08:56 +08:00
effects livestream api constant rename 2021-07-28 16:51:11 -04:00
modal Fix delete option broken / missing 2021-08-11 10:07:43 -04:00
page Fix account verification check + copy on tip page (#6884) 2021-08-13 20:40:24 -04:00
redux Commentron: min tip API now uses float again 2021-08-12 14:51:41 +08:00
scss Comment badge to reflect mod and admin status. 2021-08-16 10:08:56 +08:00
util Commentron: incorporate 'setting.Get' into 'doFetchCreatorSettings' 2021-08-12 14:51:41 +08:00
analytics.js Anthony watchman integration (#6799) 2021-08-10 16:42:50 -04:00
app.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
comments.js Commentron: incorporate 'setting.Get' into 'doFetchCreatorSettings' 2021-08-12 14:51:41 +08: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