[feat] 큐레이션 스펙 version 기반 브라우저 캐시 적용 - #92
Merged
Merged
Conversation
…owser-cache # Conflicts: # src/pages/curation/useCurationSpecFormModel.ts
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.
PR 제목 (Title)
[feat] 큐레이션 스펙 version 기반 브라우저 캐시 적용
관련 이슈
변경 사항 (Changes)
localStorage에 저장했습니다.id/version/isActive를 1시간 단위·탭 재포커스 시 재검증해 version 변경 또는 inactive 스펙의 상세 cache를 제거합니다.specId + versiondetail query key와 cache hit를 적용해 동일 version의 상세 API 호출을 생략합니다.변경 이유 (Reason for Changes)
큐레이션 스펙은 자주 변경되지 않지만 작성 화면 진입마다 상세 JSON schema를 재조회하고 있었습니다. 목록 API의 version manifest를 기준으로 상세 schema만 선택적으로 갱신해 재조회 비용을 줄이고, 변경 정합성은 유지합니다.
테스트 방법 (Test Procedure)
pnpm test:run— 43 files, 316 tests 통과pnpm build:dev통과git diff --check통과참고 사항 (Additional Information)
pnpm lint는 현재 main에도 포함된 e2e/common/page 파일의 기존 ESLint 오류로 실패합니다. 이 PR 변경 파일 scoped lint는 통과했습니다.