Skip to content

Commit

Permalink
Fix: query 상태 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
navyjeongs committed Jan 14, 2024
1 parent d44c154 commit cc2ab30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Layout = ({ children }: PropsWithChildren) => {
}, [channels]);

// 요청했을 때만
if (status === 'loading') {
if (status === 'pending') {
return (
<>
<CommonLayout>
Expand Down
2 changes: 1 addition & 1 deletion src/contexts/ProfileContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Profile } from '@type/profile';
interface ProfileState {
profile: Profile | null;
setProfile: React.Dispatch<React.SetStateAction<Profile | null>>;
status: 'loading' | 'error' | 'success';
status: 'pending' | 'error' | 'success';
isInitialLoading: boolean;
refetchProfile: () => Promise<void>;
}
Expand Down

0 comments on commit cc2ab30

Please sign in to comment.