Skip to content

[#6] feat: replace useQuery with useGoalQuery and add DEFAULT_STALE_TIME constant #7

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
merged 2 commits into from
Jul 9, 2025

Conversation

wooder2050
Copy link
Collaborator

React Query 훅 통합 및 staleTime 상수화

주요 변경사항

  • React Query 커스텀 훅 통합

    • 기존의 모든 useQuery 사용 부분을 useGoalQuery(및 Suspense용 useGoalSuspenseQuery)로 일괄 변경
    • 프로젝트 도메인에 맞는 네이밍으로 코드 일관성 및 가독성 향상
  • staleTime 상수화 및 중복 제거

    • 각 쿼리 훅에서 반복적으로 사용되던 staleTime: 5 * 60 * 1000 값을 DEFAULT_STALE_TIME 상수로 추출
    • 모든 쿼리 훅 옵션에서 해당 상수를 사용하도록 변경하여 유지보수성 및 관리 편의성 개선

@wooder2050 wooder2050 self-assigned this Jul 9, 2025
Copy link

sonarqubecloud bot commented Jul 9, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@wooder2050 wooder2050 merged commit 8c5bab1 into main Jul 9, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant