Created
September 15, 2020 08:01
-
-
Save Yassir4/6a3e947105b334c7f28e288fbe735300 to your computer and use it in GitHub Desktop.
Repositories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const handleOnEndReached = () => { | |
if (data.organization.repositories.pageInfo.hasNextPage) | |
return fetchMore({ | |
variables: { | |
after: data.organization.repositories.pageInfo.endCursor, | |
first: 15, | |
}, | |
updateQuery: onUpdate, | |
}) | |
} | |
. | |
. | |
. | |
<FlatList | |
... | |
onEndReachedThreshold={1} | |
onEndReached={handleOnEndReached} | |
/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment