diff --git a/src/view/screens/ProfileFeed.tsx b/src/view/screens/ProfileFeed.tsx index 70e52bf7..3607ef82 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 4fc4b6c7..28c69a90 100644 --- a/src/view/screens/ProfileList.tsx +++ b/src/view/screens/ProfileList.tsx @@ -558,13 +558,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, })) @@ -586,7 +581,7 @@ const FeedSection = React.forwardRef( /> {(isScrolledDown || hasNew) && (