Closed guswl98 closed 1 week ago
release-canary
v13.27.1-pr-3345.9 has been published!
Attention: Patch coverage is 8.49057%
with 97 lines
in your changes missing coverage. Please review.
Project coverage is 10.11%. Comparing base (
7d4c9eb
) to head (425a36b
). Report is 25 commits behind head on v13.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
release-canary
v13.27.1-pr-3345.11 has been published!
release-canary
v13.27.1-pr-3345.12 has been published!
PR 설명
images-api v2를
ImagesContext
에 적용합니다. v2에서는 컨텐츠 이미지 API와 리뷰 이미지 API가 분리됨에 따라 상황에 맞게 엔드포인트를 설정해 fetch 합니다. API 문서변경 내역
defaultImages
설정ImagesProvider
의images
prop에 대표 이미지를 넣어주고 있습니다. 기존에는 API에categoryOrder
쿼리가 없었기 때문에 모든 카테고리의 이미지를 불러왔었습니다. 따라서ImagesProvider
에 대표 이미지를images
에 넣어주어도 provider 내에서 실행되는 fetch의 응답에 포함되는 것을 막을 방법이 없었습니다. 하지만 V2에서는categoryOrder
을 설정할 수 있게 되었습니다. 따라서 기존 사용부의 코드를 변경하지 않으며 대표 이미지는 다시 fetch 하지 않을 수 있도록 기본categoryOrder
에는 대표 이미지를 제외하였습니다.useFetchImages
hook 분리fetchImages
함수를 사용하면 됩니다.체크리스트
스크린샷 & URL