mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
removed node related from sagas and reducers
This commit is contained in:
parent
d202a8cb18
commit
e8f8e3536d
7 changed files with 15 additions and 46 deletions
|
@ -10,12 +10,11 @@ export const useFullNode = (id: string) => {
|
|||
comments,
|
||||
comment_count: commentsCount,
|
||||
is_loading_comments: isLoadingComments,
|
||||
related,
|
||||
lastSeenCurrent,
|
||||
} = useShallowSelect(selectNode);
|
||||
|
||||
useLoadNode(id);
|
||||
useOnNodeSeen(node);
|
||||
|
||||
return { node, comments, commentsCount, related, lastSeenCurrent, isLoading, isLoadingComments };
|
||||
return { node, comments, commentsCount, lastSeenCurrent, isLoading, isLoadingComments };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue