1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

fixed boris infinite reloading

This commit is contained in:
Fedor Katurov 2021-11-21 17:35:19 +07:00
parent e071665561
commit 19af0c0856

View file

@ -11,7 +11,6 @@ import { useBoris } from '~/utils/hooks/boris/useBoris';
const BorisPage: VFC = () => {
const dispatch = useDispatch();
const node = useShallowSelect(selectNode);
const {
comments,
comment_count: count,
@ -23,9 +22,8 @@ const BorisPage: VFC = () => {
const { title, setIsBetaTester, isTester, stats } = useBoris(comments);
useEffect(() => {
if (node.is_loading) return;
dispatch(nodeLoadNode(696, 'DESC'));
}, [dispatch, node.is_loading]);
}, [dispatch]);
return (
<CommentContextProvider