Fix: correctly identify if the screen is focused when handling soft resets on post feeds (#2100)

This commit is contained in:
Paul Frazee 2023-12-05 18:01:08 -08:00 committed by GitHub
parent 3c8036587e
commit 826b841e10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 13 deletions

View file

@ -98,7 +98,7 @@ export function usePostFeedQuery(
staleTime: STALE.INFINITY,
queryKey: RQKEY(feedDesc, params),
async queryFn({pageParam}: {pageParam: RQPageParam}) {
logger.debug('usePostFeedQuery', {feedDesc, pageParam})
logger.debug('usePostFeedQuery', {feedDesc, cursor: pageParam?.cursor})
const {api, cursor} = pageParam
? pageParam