Open
Conversation
added 3 commits
November 17, 2025 18:00
- LP 상세 페이지에서 본인 LP 수정/삭제 기능 구현 - 수정 시 제목, 내용, 썸네일 이미지 변경 가능 - 이미지 선택 시 실시간 미리보기 표시 - useMutation 패턴으로 서버 상태 관리 - 수정/삭제 후 자동 데이터 갱신 (invalidateQueries) - 본인 LP만 수정/삭제 버튼 표시 (isMyLp 체크) Closes #36
- LpDetailPage.tsx를 972줄에서 258줄로 축소 - Custom hooks 생성: - useLpMutations: LP 관련 mutations (이미지 업로드, 수정, 삭제, 좋아요) - useCommentMutations: 댓글 CRUD mutations - UI 컴포넌트 분리: - LpInfo: LP 정보 표시 컴포넌트 - LpEditForm: LP 수정 폼 컴포넌트 - CommentSection: 댓글 섹션 컴포넌트 - Optimistic Update 적용: - LP 좋아요/취소 즉시 반영 - 프로필 닉네임 변경 즉시 반영 - 좋아요 API 엔드포인트 추가 (addLpLike, removeLpLike) - 코드 재사용성 및 유지보수성 향상
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
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.
📝 PR 제목
🔗 관련 이슈 번호
🚀 미션 내용 설명 및 변경 사항
❓ 질문 사항 (선택)