-
Notifications
You must be signed in to change notification settings - Fork 0
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
번쩍 홈/전체/상세 #984
base: develop
Are you sure you want to change the base?
번쩍 홈/전체/상세 #984
Conversation
|
paths['/user/v2/meeting']['get']['responses']['200']['content']['application/json;charset=UTF-8']['meetings'][number], | ||
'isCoLeader' | ||
> & { isCoLeader?: boolean }; | ||
meetingData: MeetingListOfFilterResponse['meetings'][0]; |
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.
배열의 정확히 0번째 타입이 필요했던 것일까요?? 그게 아니라면 number 로 적는 것이 일반적이라 number 로 수정해주시면 감사하겠습니다! (나중에 0번째 타입이 필요한 것이라고 헷갈릴 수 있어서요!!)
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.
그렇네요! 좋은 피드백 감사합니다 :)
@@ -0,0 +1,29 @@ | |||
import { getLightningById, GetLightningByIdResponse, getLightningList } from '@api/lightning'; |
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.
오 훅 정리 감사합니다!!ㅎㅎ
key: '#환영 태그', | ||
Title: () => <STitle>#환영 태그</STitle>, | ||
Content: () => { | ||
console.log(detailData.welcomeMessageTypes); |
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.
콘솔 발견!!
return ( | ||
<STarget> | ||
{detailData?.welcomeMessageTypes.map(tag => ( | ||
<Chip key={tag} style={{ boxShadow: 'none' }} active> |
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.
여기 혹시 tag 가 고유한 값이라는 보장이 있을까요??
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.
네..! 정책상 중복된 값이 들어가지 않습니다!
import { GetLightningByIdResponse } from '@api/lightning'; | ||
import { IconLocation } from '@sopt-makers/icons'; | ||
|
||
export const MeetingDetailList = (detailData: GetMeetingResponse) => [ |
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.
컴포넌트 양이 꽤 되는데, meetingDetailList 가 필요할 때에도 전체 페이지가 리렌더링 되고, LightningDetailList 가 필요할 때에도 전체 페이지가 리렌더링되어서 성능 상의 비효율이 발생할 수 있는 지점인 것 같아요!! 두 개의 컴포넌트가 같이 있을 필요가 없으니 둘을 서로 다른 컴포넌트로 분리하면 어떨까요??
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.
수고하셨습니다!! 코드 양이 꽤 되는데 고생 정말 많으셨을 것 같아요..!!
🚩 관련 이슈
📋 작업 내용
📌 PR Point
#976 #976 PR을 머지시켰는데,
PR에 적혀있던 논의사항에 대한 답변 부탁드립니다 !
📸 스크린샷