From a2ce6b4b56b2f842f9b46e517e3c280916328447 Mon Sep 17 00:00:00 2001 From: NJ-2020 Date: Tue, 30 Jul 2024 17:14:14 +0700 Subject: [PATCH] fix infinite loading --- src/pages/ConciergePage.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/ConciergePage.tsx b/src/pages/ConciergePage.tsx index 10040a6c3146..f87e95dafe30 100644 --- a/src/pages/ConciergePage.tsx +++ b/src/pages/ConciergePage.tsx @@ -47,12 +47,12 @@ function ConciergePage({session}: ConciergePageProps) { } }); - useEffect( - () => () => { + useEffect(() => { + isUnmounted.current = false; + return () => { isUnmounted.current = true; - }, - [], - ); + }; + }, []); return (