fix: reactions loading

This commit is contained in:
2024-04-25 11:59:20 +01:00
parent a6a1198f04
commit 52688e6389
5 changed files with 23 additions and 18 deletions

View File

@ -19,10 +19,9 @@ export interface NoteFooterProps {
export default function NoteFooter(props: NoteFooterProps) {
const { ev } = props;
const link = useMemo(() => NostrLink.fromEvent(ev), [ev.id]);
const ids = useMemo(() => [link], [link]);
const [showReactions, setShowReactions] = useState(false);
const related = useReactions("reactions", ids, undefined, false);
const related = useReactions(`reactions:${link.tagKey}`, link);
const { replies, reactions, zaps, reposts } = useEventReactions(link, related);
const { positive } = reactions;