about summary refs log tree commit diff
path: root/src/view/screens/Home.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-03-22 15:46:49 -0500
committerGitHub <noreply@github.com>2023-03-22 15:46:49 -0500
commitf6f1fe2558cd00e4dcac9685a4209c79b224d3bb (patch)
tree9e906c76a0311dae6b93fb53bd24bf1a11feb13e /src/view/screens/Home.tsx
parent449f9243f3e58f684826e7d5830fc23deaa5c901 (diff)
downloadvoidsky-f6f1fe2558cd00e4dcac9685a4209c79b224d3bb.tar.zst
Feed updates (Closes #344) (#356)
* Rework feed polling to correctly detect when new content is available (close #344)

* Tweak how the tuner works for consistency

* Improve the feed-update behavior after posting

* Load latest notifications when opening the tab
Diffstat (limited to 'src/view/screens/Home.tsx')
-rw-r--r--src/view/screens/Home.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/screens/Home.tsx b/src/view/screens/Home.tsx
index 505f9e723..4f2bc4c15 100644
--- a/src/view/screens/Home.tsx
+++ b/src/view/screens/Home.tsx
@@ -158,7 +158,7 @@ const FeedPage = observer(
     }, [feed])
 
     const onPressLoadLatest = React.useCallback(() => {
-      feed.refresh()
+      feed.resetToLatest()
       scrollToTop()
     }, [feed, scrollToTop])