Skip to content

Conversation

@dudwns
Copy link
Contributor

@dudwns dudwns commented Mar 17, 2025

📑 이슈 번호

#335

🚧 구현 내용

  • apiClient, apiServer 유틸리티 함수를 클래스형에서 함수형으로 변경하였습니다.
  • services의 Fetch 함수를 Tanstack-Query로 통합시켰습니다. (useQuery, useMutation)
  • 수동적인 refetch 함수와 invalidateQuery 함수를 제거하고, 데이터가 변경되면 query key 및 mutation 함수 내에서 자동으로 refetch 되도록 수정하였습니다.
  • 프로필 수정 시 사이드바, 프로필 수정 폼에 변경된 데이터가 반영되지 않는 문제를 발견하여 수정하였습니다.
  • PWA 기능이 개발 환경에서는 동작하지 않도록 수정하였습니다. (빌드 속도 및 디버깅 로그에 영향)
  • 인기 링크 리스트 데이터가 HTML 콘텐츠에 포함되지 않는 문제를 발견하여 수정하였습니다.

🚨 특이 사항

NEXT API 라우터 경로 변경점

로그인 관련
/api/auth-user -> /api/auth

링크 조회 정보
/api/space/${spaceId}/links/readInfo -> /api/space/${spaceId}/links/readInfo/${linkId}

dudwns added 30 commits March 12, 2025 23:06
@dudwns dudwns added 🔨 Refactor 리팩토링 📬 API 서버 API 통신 labels Mar 17, 2025
@dudwns dudwns self-assigned this Mar 17, 2025
@dudwns dudwns linked an issue Mar 17, 2025 that may be closed by this pull request
@dudwns dudwns merged commit f874f75 into develop Mar 17, 2025
1 check passed
@dudwns dudwns deleted the refactor/#335/fetch branch March 17, 2025 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📬 API 서버 API 통신 🔨 Refactor 리팩토링

Projects

None yet

Development

Successfully merging this pull request may close these issues.

불필요한 Refetch 감소 작업

2 participants