1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Fix remote toot not interactable

This commit is contained in:
xmflsct
2023-02-12 17:08:44 +01:00
parent 398f34d95d
commit 4a340fca8e
4 changed files with 32 additions and 17 deletions

View File

@ -42,6 +42,7 @@ export interface Props {
'notifyOnChangeProps' | 'getNextPageParam' | 'getPreviousPageParam' | 'select' | 'onSuccess'
>
disableRefresh?: boolean
refreshAutoRefetch?: boolean
disableInfinity?: boolean
readMarker?: 'read_marker_following'
customProps?: Partial<FlatListProps<any>>
@ -52,6 +53,7 @@ const Timeline: React.FC<Props> = ({
queryKey,
queryOptions,
disableRefresh = false,
refreshAutoRefetch = true,
disableInfinity = false,
readMarker = undefined,
customProps
@ -154,6 +156,7 @@ const Timeline: React.FC<Props> = ({
if (
curr === true &&
prev === false &&
refreshAutoRefetch &&
!isFetchingPrev.value &&
fetchingType.value === 0 &&
shouldAutoFetch.value &&