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
This commit is contained in:
Paul Frazee 2023-03-22 15:46:49 -05:00 committed by GitHub
parent 449f9243f3
commit f6f1fe2558
5 changed files with 49 additions and 72 deletions

View file

@ -158,7 +158,7 @@ const FeedPage = observer(
}, [feed])
const onPressLoadLatest = React.useCallback(() => {
feed.refresh()
feed.resetToLatest()
scrollToTop()
}, [feed, scrollToTop])