Skip to content

[refactor] React Query 캐싱 전략 개선#1559

Merged
seongwon030 merged 1 commit into
develop-fefrom
feature/#1558-react-query-cache-strategy-MOA-864
May 17, 2026
Merged

[refactor] React Query 캐싱 전략 개선#1559
seongwon030 merged 1 commit into
develop-fefrom
feature/#1558-react-query-cache-strategy-MOA-864

Conversation

@seongwon030
Copy link
Copy Markdown
Member

@seongwon030 seongwon030 commented May 17, 2026

Summary

  • useBanner staleTime/gcTime 24h → 1h (긴급 배너 교체 시 최대 24시간 구버전 노출 리스크 해소)
  • usePromotion staleTime 5min → 1min (refetchInterval: 3min보다 짧게 조정하여 폴링 후 데이터가 즉시 fresh로 인식되도록 수정)
  • docs/claude/api.mddocs/features/hooks/cacheStrategy.md에 캐싱 전략 기준 문서화

Test plan

  • 메인 페이지 배너 정상 로딩 확인
  • 홍보 게시판 페이지에서 3분 주기 자동 갱신 확인
  • 다른 페이지에서 홍보 게시판 5분 주기 백그라운드 갱신 확인

Closes MOA-863

- useBanner staleTime/gcTime 24h → 1h (긴급 배너 교체 대응)
- usePromotion staleTime 5min → 1min (refetchInterval보다 짧게 조정)
@vercel
Copy link
Copy Markdown

vercel Bot commented May 17, 2026

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

Project Deployment Actions Updated (UTC)
moadong Ready Ready Preview, Comment May 17, 2026 7:36am

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 17, 2026

Warning

Rate limit exceeded

@seongwon030 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 45 minutes and 12 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 5a31a2a4-c5d3-48e7-b66a-71c1c536d33a

📥 Commits

Reviewing files that changed from the base of the PR and between 4efb4c4 and 127b8cf.

📒 Files selected for processing (4)
  • frontend/docs/claude/api.md
  • frontend/docs/features/hooks/cacheStrategy.md
  • frontend/src/hooks/Queries/useBanner.ts
  • frontend/src/hooks/Queries/usePromotion.ts

Warning

.coderabbit.yaml has a parsing error

The CodeRabbit configuration file in this repository has a parsing error and default settings were used instead. Please fix the error(s) in the configuration file. You can initialize chat with CodeRabbit to get help with the configuration file.

💥 Parsing errors (1)
Validation error: Invalid regex pattern for base branch. Received: "**" at "reviews.auto_review.base_branches[0]"
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/#1558-react-query-cache-strategy-MOA-864

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 and usage tips.

@seongwon030 seongwon030 changed the title refactor(hooks): React Query 캐싱 전략 개선 [refactor] React Query 캐싱 전략 개선 May 17, 2026
@seongwon030 seongwon030 added 🔨 Refactor 코드 리팩토링 💻 FE Frontend labels May 17, 2026
@github-actions
Copy link
Copy Markdown

✅ UI 변경사항 없음

구분 링크
📖 Storybook https://67904e61c16daa99a63b44a7-caybfnfvke.chromatic.com/

전체 57개 스토리 · 22개 컴포넌트

@seongwon030 seongwon030 merged commit 71c0356 into develop-fe May 17, 2026
5 checks passed
@seongwon030 seongwon030 deleted the feature/#1558-react-query-cache-strategy-MOA-864 branch May 17, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💻 FE Frontend 🔨 Refactor 코드 리팩토링

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant