zio/stable
Eric Bailey 2023-11-30 15:53:34 -06:00 committed by GitHub
parent 76a3c66f54
commit 28f8999252
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -127,10 +127,13 @@ export function usePostFeedQuery(
}
},
initialPageParam: undefined,
getNextPageParam: lastPage => ({
api: lastPage.api,
cursor: lastPage.cursor,
}),
getNextPageParam: lastPage =>
lastPage.cursor
? {
api: lastPage.api,
cursor: lastPage.cursor,
}
: undefined,
select: useCallback(
(data: InfiniteData<FeedPageUnselected, RQPageParam>) => {
const tuner = params?.disableTuner