refactored eventcollector & index page

This commit is contained in:
Ren Amamiya
2023-04-13 16:29:52 +07:00
parent 1f73be3a06
commit 2fced53a60
11 changed files with 235 additions and 243 deletions

View File

@@ -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]);