refactored eventcollector & index page
This commit is contained in:
@@ -50,7 +50,7 @@ export const NoteParent = memo(function NoteParent({ id }: { id: string }) {
|
||||
account_id: activeAccount.id,
|
||||
}).catch(console.error);
|
||||
},
|
||||
undefined,
|
||||
100,
|
||||
undefined,
|
||||
{
|
||||
unsubscribeOnEose: true,
|
||||
@@ -75,7 +75,9 @@ export const NoteParent = memo(function NoteParent({ id }: { id: string }) {
|
||||
checkNoteExist();
|
||||
|
||||
return () => {
|
||||
unsubscribe.current;
|
||||
if (unsubscribe.current) {
|
||||
unsubscribe.current();
|
||||
}
|
||||
};
|
||||
}, [checkNoteExist]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user