Skip to content

Commit

Permalink
Back out leftover change
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Apr 9, 2024
1 parent 09c51af commit 0d070ab
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/view/screens/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,9 @@ function HomeScreenReady({
(index: number) => {
setMinimalShellMode(false)
setDrawerSwipeDisabled(index > 0)
if (lastPagerReportedIndexRef.current !== index) {
lastPagerReportedIndexRef.current = index
const feed = allFeeds[index]
setSelectedFeed(feed)
}
const feed = allFeeds[index]
setSelectedFeed(feed)
lastPagerReportedIndexRef.current = index
},
[setDrawerSwipeDisabled, setSelectedFeed, setMinimalShellMode, allFeeds],
)
Expand Down

0 comments on commit 0d070ab

Please sign in to comment.