mirror of
https://github.com/hoornet/vega.git
synced 2026-05-06 20:29:12 -07:00
Preserve feed scroll position across navigation
Keep Feed component mounted (hidden via CSS) instead of unmounting when navigating to threads/profiles/etc. Back button now returns to the exact scroll position in the feed.
This commit is contained in:
@@ -24,6 +24,7 @@ export function Feed() {
|
||||
connect().then(() => loadFeed());
|
||||
}, []);
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
if (tab === "following" && loggedIn && follows.length > 0) {
|
||||
loadFollowFeed();
|
||||
|
||||
Reference in New Issue
Block a user