-
Notifications
You must be signed in to change notification settings - Fork 2
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
[FE] refactor: 리뷰 목록 페이지에서 isLastPage가 true일 때, IntersectionObserver 해제 #737
Changes from all commits
86a4d7c
917ce6a
a80fdfc
1febfdb
ec1c673
8c77d47
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ const useGetReviewList = () => { | |
queryFn: ({ pageParam }) => | ||
getReviewListApi({ | ||
lastReviewId: pageParam === 0 ? null : pageParam, // 첫 api 요청 시, null 값 보내기 | ||
size: pageParam === 0 ? 10 : 5, // 첫 api 요청 시, 10개의 리뷰를 불러오고 그 이후로는 5개씩 불러온다. | ||
size: 10, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. size 변경 이유가 뭘까요? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 중간에 정책이 바꼈는데 아직 공지가 안 됐던 상황이라고 들었어요 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 넵넵 에프이 말이 맞아요🙂 중간에 바뀌었는데 공지가 안 되었어요.. 다들 바쁘다 보니까😭 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 추가로 받아오는 리뷰 개수가 10개 미만이어도 오류는 없는건가요? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 일단 목 데이터 개수 조절해서 해봤는데 오류는 없네요.. |
||
}), | ||
|
||
initialPageParam: 0, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,11 @@ import styled from '@emotion/styled'; | |
|
||
import media from '@/utils/media'; | ||
|
||
export const AnswerListModalContent = styled.div` | ||
overflow-x: hidden; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. stylint 적용하면 overflow-x가 width 위에 있어야해요 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 적용했습니다. 고마워요!! |
||
width: 100%; | ||
`; | ||
|
||
export const AnswerListContainer = styled.div` | ||
position: relative; | ||
|
||
|
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.
나중에 상수화 합시당~