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:
Jure
2026-03-15 19:44:10 +01:00
parent 35fac6bab9
commit 17011252d6
2 changed files with 4 additions and 1 deletions

View File

@@ -24,6 +24,7 @@ export function Feed() {
connect().then(() => loadFeed());
}, []);
useEffect(() => {
if (tab === "following" && loggedIn && follows.length > 0) {
loadFollowFeed();