Skip to content

[SETTING] TanStack Query Provider 공통 세팅 - #22

Merged
hdg0116 merged 2 commits into
developfrom
setting/21-query-provider-setup
Aug 27, 2026
Merged

hdg0116 merged 2 commits into
developfrom
setting/21-query-provider-setup

Conversation

@hdg0116

@hdg0116 hdg0116 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

ISSUE 🔗

close #21



What is this PR? 🔍

  • TanStack Query 공통 QueryClient 생성 로직을 추가했습니다.
  • query 기본 정책을 설정했습니다.
    • staleTime: 30_000
    • refetchOnWindowFocus: false
    • 인증/검증 API 에러는 retry 제외
    • 일반 query retry 최대 2회
  • mutation 기본 retry를 비활성화했습니다.
  • QueryProvider를 추가하고 App Router root layout의 {children} 영역에 연결했습니다.
  • layout.tsx는 Server Component로 유지하고, provider만 최소 client boundary로 분리했습니다.



Screenshot 📷

  • API 상태 관리 provider 설정 작업으로 별도 화면 변경은 없습니다.



Test Checklist ✔

  • pnpm format:check
  • pnpm lint
  • pnpm build

@vercel

vercel Bot commented Aug 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
room-in-us-front-admin Ready Ready Preview Aug 27, 2026 1:10pm

@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 6 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 9d483fa0-1dec-480f-863c-5d8ecbda7b33

📥 Commits

Reviewing files that changed from the base of the PR and between d624b56 and e17d4ad.

📒 Files selected for processing (4)
  • src/app/layout.tsx
  • src/shared/query/QueryProvider.tsx
  • src/shared/query/index.ts
  • src/shared/query/query-client.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the ⚙ Setting 개발 환경 세팅 label Aug 27, 2026
@hdg0116
hdg0116 merged commit 076082c into develop Aug 27, 2026
6 checks passed
@hdg0116
hdg0116 deleted the setting/21-query-provider-setup branch August 27, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚙ Setting 개발 환경 세팅

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[API] TanStack Query Provider 공통 세팅

1 participant