From 19af0c0856ac72fae14800395b016c855d2199eb Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Sun, 21 Nov 2021 17:35:19 +0700 Subject: [PATCH] fixed boris infinite reloading --- src/pages/boris.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pages/boris.tsx b/src/pages/boris.tsx index 87fe183c..62974318 100644 --- a/src/pages/boris.tsx +++ b/src/pages/boris.tsx @@ -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 (