bug: thread-to-thread cache reset
This commit is contained in:
parent
e09df95adf
commit
ab2398c2a4
|
@ -39,10 +39,16 @@ export default function useThreadFeed(link: NostrLink) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return sub;
|
return sub;
|
||||||
}, [trackingEvents, trackingATags, allEvents, pref, link.id]);
|
}, [trackingEvents, trackingATags, allEvents, pref]);
|
||||||
|
|
||||||
const store = useRequestBuilder<FlatNoteStore>(FlatNoteStore, sub);
|
const store = useRequestBuilder<FlatNoteStore>(FlatNoteStore, sub);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
setTrackingATags([]);
|
||||||
|
setTrackingEvent([link.id]);
|
||||||
|
setAllEvents([link.id]);
|
||||||
|
}, [link.id]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (store.data) {
|
if (store.data) {
|
||||||
const mainNotes = store.data?.filter(a => a.kind === EventKind.TextNote || a.kind === EventKind.Polls) ?? [];
|
const mainNotes = store.data?.filter(a => a.kind === EventKind.TextNote || a.kind === EventKind.Polls) ?? [];
|
||||||
|
|
Loading…
Reference in New Issue