@@ -11,6 +11,7 @@ import { View } from "react-native"
1111import { useActionLanguage , useGeneralSettingKey } from "@/src/atoms/settings/general"
1212
1313import { useEntries } from "../screen/atoms"
14+ import { getResetScrollSignalForContent } from "../screen/scroll-reset"
1415import { TimelineSelectorList } from "../screen/TimelineSelectorList"
1516import { EntryListEndScrollSpacer } from "./EntryListEndScrollSpacer"
1617import { EntryListFooter } from "./EntryListFooter"
@@ -92,14 +93,21 @@ export const EntryListContentSocial = ({
9293 mode : translationMode ,
9394 } )
9495
96+ const contentResetScrollSignal = getResetScrollSignalForContent ( {
97+ entryCount : entryIds ?. length ?? 0 ,
98+ hasScrollableSkeleton : true ,
99+ isReady,
100+ resetScrollSignal,
101+ } )
102+
95103 // Show loading skeleton when entries are not ready and no data yet
96104 if ( ! isReady && ( ! entryIds || entryIds . length === 0 ) ) {
97105 return (
98106 < TimelineSelectorList
99107 onRefresh = { ( ) => { } }
100108 isRefetching = { false }
101109 onResetScrollSignalConsumed = { onResetScrollSignalConsumed }
102- resetScrollSignal = { resetScrollSignal }
110+ resetScrollSignal = { contentResetScrollSignal }
103111 data = { Array . from ( { length : 5 } ) . map ( ( _ , index ) => `skeleton-${ index } ` ) }
104112 keyExtractor = { ( id ) => id }
105113 renderItem = { EntryItemSkeleton }
@@ -116,7 +124,7 @@ export const EntryListContentSocial = ({
116124 } }
117125 isRefetching = { isRefetching }
118126 onResetScrollSignalConsumed = { onResetScrollSignalConsumed }
119- resetScrollSignal = { resetScrollSignal }
127+ resetScrollSignal = { contentResetScrollSignal }
120128 data = { entryIds }
121129 extraData = { extraData }
122130 keyExtractor = { ( id ) => id }
0 commit comments