-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[정용준] Week14 #422
The head ref may contain hidden characters: "part3-\uC815\uC6A9\uC900-week14"
[정용준] Week14 #422
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
용준님 오늘은 코드량이 많진 않네용
근데 왜 순한맛인가요 ㅋㅋㅋ
|
||
useEffect(() => { | ||
setUser(user); | ||
}); | ||
if (!checkAuthenticated()) router.push(PAGE_ROUTES.SIGNIN); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -16,3 +16,12 @@ export const FolderListResponse = z.object({ | |||
data: z.array(FolderVO), | |||
}); | |||
export type FolderList = z.infer<typeof FolderListResponse>; | |||
|
|||
export const MyFolderVO = FolderVO.omit({ link: true }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VO, DTO, DO 등등이 사실 layer 가 많이 나뉘어지고 외부 api 연동이 많은 백엔드에서 많이 사용하는 방식이긴 합니다 🤣
@@ -13,8 +12,7 @@ export default function LinkCardListSection({ | |||
headerRightSection, | |||
search = "", | |||
}: Props) { | |||
const user = useUser(); | |||
const { linkList } = useLinkListQuery(user.id, folder.id); | |||
const { linkList } = useLinkListQuery(folder.id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기는 query 안에 isLoading 과 같은 util 변수들이 있는데
|
||
export default function GNB() { | ||
const isLoggedIn = useAuth(); | ||
const currentUser = useCurrentUserQuery(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요긴 없네요?
})); | ||
}; | ||
|
||
export const createMyFolderListWithMyFolderListVO = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이름이 어마무시한군요
요구사항
기본
심화
주요 변경사항
스크린샷
멘토에게