Thread progess

This commit is contained in:
2022-12-20 12:08:41 +00:00
parent e617d6d528
commit c454f5c7aa
6 changed files with 98 additions and 12 deletions

View File

@ -55,10 +55,8 @@ export default function useThreadFeed(id) {
sub.OnEvent = (e) => {
dispatch(addNote(e));
};
sub.OnEnd = (c) => {
c.RemoveSubscription(sub.Id);
};
system.AddSubscription(sub);
return () => system.RemoveSubscription(sub.Id);
}
}, [system, notes]);