[Refactor/#241] invalidateQueries 처리 기준 통일 및 retry 전략 세분화 - #260
Merged
Conversation
axiosInstance 인터셉터가 401 재발급을 별도로 처리하므로 전역 retry: 1이 4xx 에러에서 불필요한 중복 재시도를 유발하는 문제를 수정
백그라운드 갱신 의도를 void로 명시해 암묵적 Promise 무시 패턴 제거
setIsOpen(false)가 await Promise.all 이전에 실행되어 드롭다운이 캐시 갱신 전에 닫히던 문제를 수정
Workspace.tsx: 워크스페이스 생성 후 setCreateOpen(false) 이전에 캐시 갱신 완료 보장 MemberManagement.tsx: 멤버 삭제 후 setIsDeleteModalOpen(false) 이전에 캐시 갱신 완료 보장
2 tasks
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthrough
Changes쿼리 클라이언트 재시도 정책 및 무효화 흐름 정비
예상 코드 리뷰 노력🎯 2 (Simple) | ⏱️ ~10 minutes 관련 가능성이 있는 PR
제안 레이블
제안 리뷰어
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
📚 Storybook 배포 완료
|
9 tasks
9 tasks
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.
🚨 관련 이슈
#241
✨ 변경사항
✏️ 작업 내용
retry 전략 세분화 (
src/lib/queryClient.ts)retry: 1은 4xx 에러에서도 재시도를 유발해, axiosInstance 인터셉터의 401 재발급 재시도와 중복 발생invalidateQueries사용 기준 통일WorkspaceSwitcher:await순서 교정 —setIsOpen(false)를await Promise.all뒤로 이동Workspace:void→await— 워크스페이스 생성 후setCreateOpen(false)이전 캐시 갱신 보장MemberManagement: 멤버 삭제onSuccessvoid→await— 삭제 후setIsDeleteModalOpen(false)이전 캐시 갱신 보장useCampaignGroup,AdsListPage: 묵시 버림 →void명시😅 미완성 작업
N/A
📢 논의 사항 및 참고 사항
N/A
Summary by CodeRabbit
릴리스 노트
버그 수정
개선 사항