From 5705af1795044555303eca6ed10c39aff3122f55 Mon Sep 17 00:00:00 2001 From: Kathryn Beaty Date: Thu, 12 Dec 2024 14:28:41 -0500 Subject: [PATCH] remove isNotFirstLoad from dep array --- .../Comments/Stream/AllCommentsTab/AllCommentsTabContainer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/core/client/stream/tabs/Comments/Stream/AllCommentsTab/AllCommentsTabContainer.tsx b/client/src/core/client/stream/tabs/Comments/Stream/AllCommentsTab/AllCommentsTabContainer.tsx index 7cd2f61a5f..e696307506 100644 --- a/client/src/core/client/stream/tabs/Comments/Stream/AllCommentsTab/AllCommentsTabContainer.tsx +++ b/client/src/core/client/stream/tabs/Comments/Stream/AllCommentsTab/AllCommentsTabContainer.tsx @@ -200,7 +200,7 @@ export const AllCommentsTabContainer: FunctionComponent = ({ if (visible && isNotFirstLoad && live) { setShowCommentRefreshButton(true); } - }, [visible, setShowCommentRefreshButton, live, isNotFirstLoad]); + }, [visible, setShowCommentRefreshButton, live]); useEffect(() => { if (!topOfCommentsInView && allCommentsInView) {