-
Notifications
You must be signed in to change notification settings - Fork 1
✨[Feat] SSR(서버 사이드 렌더링) 방식으로 초기 데이터를 가져오기 #308 #328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨[Feat] SSR(서버 사이드 렌더링) 방식으로 초기 데이터를 가져오기 #308 #328
The head ref may contain hidden characters: "308-refactor-\uC11C\uBC84-\uCE21\uC5D0\uC11C-\uCD08\uAE30-10\uAC1C\uC758-\uB370\uC774\uD130\uB97C-\uAC00\uC838\uC640-\uB80C\uB354\uB9C1"
Conversation
* ♻️[Refactor] 프로그레스바 100% 안넘도록 수정 * ✅[Test] 테스트 코드 추가
* �📝[Docs] 리드미 포맷 적용 * 리드미 업데이트
…thub.com/codeit-team3/FE into 308-refactor-서버-측에서-초기-10개의-데이터를-가져와-렌더링
…thub.com/codeit-team3/FE into 308-refactor-서버-측에서-초기-10개의-데이터를-가져와-렌더링
…-refactor-서버-측에서-초기-10개의-데이터를-가져와-렌더링
cloud0406
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다~.~
sunnwave
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니당~ㅎㅅㅎ
#️⃣연관된 이슈
📝작업 내용
fetchBookClubs)*적용된 곳:
src/app/page.tsx,src/app/bookclub/page.tsxfetchBookClubs테스트 코드 작성useBookClubList테스트 코드 작성*
useBookClubList: 쿼리키를 사용하여 데이터를 가져오는 훅미리보기, 사용방법
Hydration API를 활용하여 SSR 데이터 Prefetching
서버 컴포넌트에서 데이터를 prefetch한 후 Hydration API를 활용합니다.
prefetching 단계
코드 구현
기타 참고사항
size=100으로 설정현재 무한 스크롤 부재로 default로 설정된 size = 10을 100으로 설정하여 모든 모임을 조회할 수 있도록 구현했습니다.
useBookClubList테스트: API 호출 모킹하기 위해jest.config.js에 아래 설정을 추가하였습니다.