Skip to content
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

🎉 물건 조회 무한스크롤 로직 구현 #38

Closed
wants to merge 3 commits into from

Conversation

doggopawer
Copy link
Contributor

- 목적

관련 티켓 번호: 62

  • 물건 목록을 무한 스크롤 조회 하기위한 기능을 구현했습니다.

- 주요 변경 사항

  • useIntersectionObserver 생성 및 적용
  • react-hook-form 적용

기타 사항 (선택)

  • 현재 뷰포트 높이에 따라 intersection의 위치가 달라지고 있습니다. => 뷰포트가 물건 5개의 높이보다 작으면 인터섹션 옵저버 정상 동작, 크면 인터섹션 옵저버 동작 안함(버그 리포트에 조만간 올리겠습니다.)

- 스크린샷 (선택)

@doggopawer doggopawer self-assigned this Nov 4, 2023
Comment on lines +13 to +22
const getItems = async ({
category,
priceRange,
name,
status,
size,
cursorId,
}: GetItems) => {
const response = await apiClient.get(ApiEndPoint.items(cursorId))
return response
return response.json()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

response가 json 데이터를 반환하지 않을 경우 문제가 생길 수 있을 것 같아요. 공통으로 에러를 처리하던가 하는 논의를 해야겠군요!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

네 어떻게 처리할지, 한번 논의를 해보면 좋겠네요

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

input에 대해서 validate하는 부분이 있을까요?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

input에 대한 검증 부분은 현재 진행 하고 있습니다. 일단 무한 스크롤 부분만 완료 했습니다!

@doggopawer doggopawer closed this Nov 7, 2023
@oaoong oaoong deleted the NABI-62 branch November 13, 2023 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants