bug: reload timeline switching hashtags

This commit is contained in:
Kieran 2023-01-19 18:12:22 +00:00
parent 147c7502dc
commit aa0f849d09
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ export default function useTimelineFeed(subject: TimelineSubject, options: Timel
} }
return sub; return sub;
}, [subject, until, since, window]); }, [subject.type, subject.items, until, since, window]);
const main = useSubscription(sub, { leaveOpen: true }); const main = useSubscription(sub, { leaveOpen: true });

View File

@ -8,7 +8,7 @@ const HashTagsPage = () => {
return ( return (
<> <>
<h2>#{tag}</h2> <h2>#{tag}</h2>
<Timeline subject={{ type: "hashtag", items: [tag] }} postsOnly={false} method={"TIME_RANGE"} /> <Timeline key={tag} subject={{ type: "hashtag", items: [tag] }} postsOnly={false} method={"TIME_RANGE"} />
</> </>
) )
} }