mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
fixed user hydration
This commit is contained in:
parent
ed9694c246
commit
75dc20ca0b
13 changed files with 194 additions and 95 deletions
|
@ -1,5 +1,7 @@
|
|||
import React, { FC } from 'react';
|
||||
|
||||
import { observer } from 'mobx-react-lite';
|
||||
|
||||
import { Superpower } from '~/components/boris/Superpower';
|
||||
import { ScrollHelperBottom } from '~/components/common/ScrollHelperBottom';
|
||||
import { Card } from '~/components/containers/Card';
|
||||
|
@ -18,7 +20,7 @@ import styles from './styles.module.scss';
|
|||
|
||||
type IProps = {};
|
||||
|
||||
const NodeLayout: FC<IProps> = () => {
|
||||
const NodeLayout: FC<IProps> = observer(() => {
|
||||
const { node, isLoading, update } = useNodeContext();
|
||||
const { head, block } = useNodeBlocks(node, isLoading);
|
||||
const [canEdit, canLike, canStar] = useNodePermissions(node);
|
||||
|
@ -70,6 +72,6 @@ const NodeLayout: FC<IProps> = () => {
|
|||
</Superpower>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
});
|
||||
|
||||
export { NodeLayout };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue