-
Notifications
You must be signed in to change notification settings - Fork 39
[이상달] Sprint7 #199
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
Merged
addiescode-sj
merged 51 commits into
codeit-bootcamp-frontend:React-이상달
from
asksa1256:React-이상달-sprint7
Jun 27, 2025
Merged
[이상달] Sprint7 #199
addiescode-sj
merged 51 commits into
codeit-bootcamp-frontend:React-이상달
from
asksa1256:React-이상달-sprint7
Jun 27, 2025
The head ref may contain hidden characters: "React-\uC774\uC0C1\uB2EC-sprint7"
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
asksa1256
commented
Jun 24, 2025
addiescode-sj
approved these changes
Jun 25, 2025
Collaborator
addiescode-sj
left a comment
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.
수고하셨습니다!
변경사항이 꽤 많아서 리뷰가 오래 걸렸네요 :)
emotion도 적극적으로 활용하시고, 좋은 시도 많이 보인것같아 잘 봤습니다 :)
주요 리뷰 포인트
- craco 채택 관련 피드백
- CommentList 관심사 분리
- useAsync 훅 사용 관련 피드백 (의도 및 제약)
- useForm custom validator 추가 제안
Collaborator
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


요구사항
기본
상품 상세
상품 문의 댓글
심화
주요 변경사항
Pagination컴포넌트를CursorPagination,TotalCountPagination으로 나누고,CursorPagination을 사용했습니다.useForm의 폼 유효성 검사 방식을 변경했습니다. (관련해서 코멘트 형식으로 질문 드리겠습니다.)버튼+메뉴 드롭다운/드롭다운 메뉴/드롭다운 버튼으로 분리했습니다.배포 링크
https://panda-market-react-sd.netlify.app/
스크린샷
desktop - 댓글 있음
desktop - 댓글 없음
댓글 입력 시 '등록' 활성화
tablet
mobile
좋아요 버튼 토글 UI
2025-06-23.18-59-18.mp4
멘토에게
useAsync훅이 사실 코드잇 강의대로 만든 거였는데.. 처음 봤을 땐 유용해 보여서 따라했지만 쓰다 보니 의문점이 생겼습니다.useAsync가fetch와 같은 비동기 작업을 선언적으로 할 수 있도록loading,error와 같은 특정 리턴값을 보내도록 해놨는데, 리턴값 중runAsync같은 경우는 비동기 함수 자체라서 그런지useAsync안에서도try catch문을 쓰게 되고, 외부 컴포넌트에서도runAsync를 사용해 또다시try catch문을 쓰는 경우가 생기더라구요. 이렇게 쓰는 게 맞을까요..?한편으론
useAsync의 리턴문을{isLoading, fetchError, **runAsync**}에서{isLoading, fetchError, **data**}와 같이 아예 fetch가 완료된 결과물인data를 비동기 함수 대신 리턴하면 좀 더 로직이 깔끔해지지 않을까 하는 생각이 듭니다.이에 대해 어떻게 생각하시는지 궁금하고, 실제로는 이러한 비동기 작업 커스텀 훅을 어떤 식으로 만드는지도 궁금합니다.
[이미지 첨부:
useAsync밖에서도 안에서도try catch를 쓰고 있는 모습..]페이지와 기능들이 점점 추가되면서 관련 로직들이 복잡해지고 있는 것 같은데, 정리하자니 진도가 안 나가고 속도감 있게 작업하자니 정리가 안 되어서 고민입니다. 속도와 코드 퀄리티 중 어디에 무게를 두는 게 좋을까요? 코드 퀄리티가 중요하다는 생각은 들지만.. 시간 내에 다양한 기능들을 구현해보는 것도 중요한 것 같아서 조언을 받고 싶습니다.
셀프 코드 리뷰를 통해 질문 이어가겠습니다.