diff --git a/src/view/screens/ProfileFeed.tsx b/src/view/screens/ProfileFeed.tsx index 70e52bf7aa..3607ef82dc 100644 --- a/src/view/screens/ProfileFeed.tsx +++ b/src/view/screens/ProfileFeed.tsx @@ -393,12 +393,8 @@ const FeedSection = React.forwardRef( const onScrollToTop = useCallback(() => { scrollElRef.current?.scrollToOffset({offset: -headerHeight}) - }, [scrollElRef, headerHeight]) - - const onPressLoadLatest = React.useCallback(() => { - onScrollToTop() feed.refresh() - }, [feed, onScrollToTop]) + }, [feed, scrollElRef, headerHeight]) React.useImperativeHandle(ref, () => ({ scrollToTop: onScrollToTop, @@ -420,7 +416,7 @@ const FeedSection = React.forwardRef( /> {(isScrolledDown || hasNew) && ( diff --git a/src/view/screens/ProfileList.tsx b/src/view/screens/ProfileList.tsx index 859f50befb..33cda8c2c0 100644 --- a/src/view/screens/ProfileList.tsx +++ b/src/view/screens/ProfileList.tsx @@ -595,13 +595,8 @@ const FeedSection = React.forwardRef( const onScrollToTop = useCallback(() => { scrollElRef.current?.scrollToOffset({offset: -headerHeight}) - }, [scrollElRef, headerHeight]) - - const onPressLoadLatest = React.useCallback(() => { - onScrollToTop() feed.refresh() - }, [feed, onScrollToTop]) - + }, [feed, scrollElRef, headerHeight]) React.useImperativeHandle(ref, () => ({ scrollToTop: onScrollToTop, })) @@ -623,7 +618,7 @@ const FeedSection = React.forwardRef( /> {(isScrolledDown || hasNew) && (