Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
Fix infinite lineup fetch (#1940)
Browse files Browse the repository at this point in the history
  • Loading branch information
sliptype committed Sep 16, 2022
1 parent 19381a3 commit 3394a06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/mobile/src/components/lineup/Lineup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ export const Lineup = ({
// trigger another load
useEffect(() => {
if (isPastLoadThreshold && lineup.status !== Status.LOADING) {
setIsPastLoadThreshold(false)
handleLoadMore()
}
}, [isPastLoadThreshold, lineup.status, handleLoadMore])
Expand Down

0 comments on commit 3394a06

Please sign in to comment.