From cc2ab30c1e06b26a7e6faef458c8b194d24a2d64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=87=E1=85=A1=E1=86=A8=E1=84=8C=E1=85=A5=E1=86=BC?= =?UTF-8?q?=E1=84=89=E1=85=A5=E1=86=A8?= Date: Sun, 14 Jan 2024 15:15:12 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20query=20=EC=83=81=ED=83=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/layout.tsx | 2 +- src/contexts/ProfileContext.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/layout.tsx b/src/components/layout.tsx index 77e5d5c..f52b745 100644 --- a/src/components/layout.tsx +++ b/src/components/layout.tsx @@ -37,7 +37,7 @@ const Layout = ({ children }: PropsWithChildren) => { }, [channels]); // 요청했을 때만 - if (status === 'loading') { + if (status === 'pending') { return ( <> diff --git a/src/contexts/ProfileContext.tsx b/src/contexts/ProfileContext.tsx index 8de151a..0eaae2e 100644 --- a/src/contexts/ProfileContext.tsx +++ b/src/contexts/ProfileContext.tsx @@ -5,7 +5,7 @@ import { Profile } from '@type/profile'; interface ProfileState { profile: Profile | null; setProfile: React.Dispatch>; - status: 'loading' | 'error' | 'success'; + status: 'pending' | 'error' | 'success'; isInitialLoading: boolean; refetchProfile: () => Promise; }