diff --git a/app/soapbox/features/remote_timeline/index.tsx b/app/soapbox/features/remote_timeline/index.tsx index d3560f4a6..c429549f5 100644 --- a/app/soapbox/features/remote_timeline/index.tsx +++ b/app/soapbox/features/remote_timeline/index.tsx @@ -44,6 +44,14 @@ const RemoteTimeline: React.FC = ({ params }) => { } }; + const handleCloseClick: React.MouseEventHandler = () => { + history.push('/timeline/fediverse'); + }; + + const handleLoadMore = (maxId: string) => { + dispatch(expandRemoteTimeline(instance, { maxId, onlyMedia })); + }; + useEffect(() => { disconnect(); dispatch(expandRemoteTimeline(instance, { onlyMedia, maxId: undefined })); @@ -55,14 +63,6 @@ const RemoteTimeline: React.FC = ({ params }) => { }; }, [onlyMedia]); - const handleCloseClick: React.MouseEventHandler = () => { - history.push('/timeline/fediverse'); - }; - - const handleLoadMore = (maxId: string) => { - dispatch(expandRemoteTimeline(instance, { maxId, onlyMedia })); - }; - return ( {instance && }