-
Notifications
You must be signed in to change notification settings - Fork 1
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
✨ 피드 조회 API #25
✨ 피드 조회 API #25
Conversation
This pull request is automatically being deployed by Amplify Hosting (learn more). |
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.
어떤 건 Client 쪽 스니펫 같고, 어떤 건 Server 쪽 같은데 간략하게 설명 부탁드릴게요!
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.
무한 스크롤이 정상적으로 작동하는 것을 확인했습니다. 병합하셔도 좋습니다!
- queryClient 옵션 설정 - query key 관리 - react-infinite-scroller 추가 - FeedList에 대한 타입 임시 추가 - #24 에 등록한 이슈로, 공용 타입 설정 후 리팩토링 예정 - 피드 조회 API 적용 - AWS amplify 임시 활성화를 위해, PROD 모드에서도 Mocking 활성화 Closes #PW-269
작업 이유
피드 조회 API
작업 사항
1️⃣ Query Client 기본 옵션 설정
모든 쿼리의 staleTime, gcTime을 기본값으로 설정해주었습니다.
staleTime과 gcTime의 경우에는 항상 최신화가 필요한 경우에는 0으로 따로 설정해주어 사용하면 될 것 같습니다.
그리고, 페이지에 다시 focus될 때마다 refetch 하는 기능은 불 필요하다고 생각하여 false 처리해두었습니다.
2️⃣ 피드 조회 API 추가
현재 더미 데이터의 수가 적어, 무한 스크롤이 정상적으로 적용되는지 확인하기 어려운 부분이 있습니다. 그래서 더미 데이터를 추가할 예정입니다.
3️⃣ 작업 예정
피드 메인 페이지 작업 예정 목록에 대해 공유하는 것이 좋을 것 같아서 이렇게 작성합니다.
리뷰어가 중점적으로 확인해야 하는 부분
발견한 이슈