mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
fixed node loading hook
This commit is contained in:
parent
4c4461ea19
commit
0dc5ae99a3
7 changed files with 35 additions and 16 deletions
|
@ -14,7 +14,7 @@ export const useFullNode = (id: string) => {
|
|||
lastSeenCurrent,
|
||||
} = useShallowSelect(selectNode);
|
||||
|
||||
useLoadNode(id, isLoading);
|
||||
useLoadNode(id);
|
||||
useOnNodeSeen(node);
|
||||
|
||||
return { node, comments, commentsCount, related, lastSeenCurrent, isLoading, isLoadingComments };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue