mirror of
https://github.com/tooot-app/app
synced 2025-01-31 02:37:13 +01:00
Remove disable auto refetch
Now remote instance page has auto hide heading
This commit is contained in:
parent
120641b95e
commit
c44482aa75
@ -42,7 +42,6 @@ export interface Props {
|
|||||||
'notifyOnChangeProps' | 'getNextPageParam' | 'getPreviousPageParam' | 'select' | 'onSuccess'
|
'notifyOnChangeProps' | 'getNextPageParam' | 'getPreviousPageParam' | 'select' | 'onSuccess'
|
||||||
>
|
>
|
||||||
disableRefresh?: boolean
|
disableRefresh?: boolean
|
||||||
refreshAutoRefetch?: boolean
|
|
||||||
disableInfinity?: boolean
|
disableInfinity?: boolean
|
||||||
readMarker?: 'read_marker_following'
|
readMarker?: 'read_marker_following'
|
||||||
customProps?: Partial<FlatListProps<any>>
|
customProps?: Partial<FlatListProps<any>>
|
||||||
@ -53,7 +52,6 @@ const Timeline: React.FC<Props> = ({
|
|||||||
queryKey,
|
queryKey,
|
||||||
queryOptions,
|
queryOptions,
|
||||||
disableRefresh = false,
|
disableRefresh = false,
|
||||||
refreshAutoRefetch = true,
|
|
||||||
disableInfinity = false,
|
disableInfinity = false,
|
||||||
readMarker = undefined,
|
readMarker = undefined,
|
||||||
customProps
|
customProps
|
||||||
@ -156,7 +154,6 @@ const Timeline: React.FC<Props> = ({
|
|||||||
if (
|
if (
|
||||||
curr === true &&
|
curr === true &&
|
||||||
prev === false &&
|
prev === false &&
|
||||||
refreshAutoRefetch &&
|
|
||||||
!isFetchingPrev.value &&
|
!isFetchingPrev.value &&
|
||||||
fetchingType.value === 0 &&
|
fetchingType.value === 0 &&
|
||||||
shouldAutoFetch.value &&
|
shouldAutoFetch.value &&
|
||||||
|
@ -146,7 +146,6 @@ const Explore = ({ route: { key: page } }: { route: { key: 'Explore' } }) => {
|
|||||||
flRef={flRef}
|
flRef={flRef}
|
||||||
queryKey={queryKey}
|
queryKey={queryKey}
|
||||||
disableRefresh={!remoteActive}
|
disableRefresh={!remoteActive}
|
||||||
refreshAutoRefetch={false}
|
|
||||||
customProps={{
|
customProps={{
|
||||||
keyboardDismissMode: 'on-drag',
|
keyboardDismissMode: 'on-drag',
|
||||||
keyboardShouldPersistTaps: 'always',
|
keyboardShouldPersistTaps: 'always',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user