1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 21:06:42 +07:00

added updates everywhere

This commit is contained in:
Fedor Katurov 2021-04-02 17:49:03 +07:00
parent a451e30499
commit b1e68a8a6d
27 changed files with 246 additions and 79 deletions

View file

@ -17,6 +17,7 @@ import { useScrollToTop } from '~/utils/hooks/useScrollToTop';
import { useLoadNode } from '~/utils/hooks/node/useLoadNode';
import { URLS } from '~/constants/urls';
import { EditorEditDialog } from '~/containers/dialogs/EditorEditDialog';
import { useOnNodeSeen } from '~/utils/hooks/node/useOnNodeSeen';
type IProps = RouteComponentProps<{ id: string }> & {};
@ -38,6 +39,7 @@ const NodeLayout: FC<IProps> = memo(
useNodeCoverImage(current);
useScrollToTop([id]);
useLoadNode(id, is_loading);
useOnNodeSeen(current);
const { head, block } = useNodeBlocks(current, is_loading);