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

🐛 찜 목록 연결 안되던 오류 해결 #101

Merged
merged 1 commit into from
Nov 24, 2023
Merged

Conversation

juyeon-park
Copy link
Contributor

- 목적

관련 티켓 번호: 300


- 주요 변경 사항

  • 찜목록 안불러와지던 오류 해결했습니다.
  • 기존에 누락되어있던 데이터들 백엔드에 요청해서 해결했습니다.
  • 동현님이 짜놓으신 무한스크롤 업데이트 된 코드로 변경했습니다 (무한의 감사 말씀드립니다 🙏 )

기타 사항 (선택)

image


- 스크린샷 (선택)

@juyeon-park juyeon-park self-assigned this Nov 23, 2023

const isEmpty = data?.pages[0].length === 0
const MyDibsList = ({
data,
Copy link
Collaborator

Choose a reason for hiding this comment

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

data보단 다른 이름으로 처리해도 좋을 것 같아요!

Comment on lines +57 to +61
getMyDibsList: ({ cursorId }: GetMyDibsReq) =>
`/dibs/?${getQueryParams({
cursorId,
size: COMMON_PAGE_SIZE,
})}`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

요거 함수 꼭 여기 안에서 써야하나요??

`/dibs/?${getQueryParams({
      cursorId,
      size: COMMON_PAGE_SIZE,
    })}

자체를 cursorId 넣는 곳(사용처)에서 처리하면 좋을 것 같습니다

Copy link
Contributor

Choose a reason for hiding this comment

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

좋은 의견 감사합니다. apiEndPoint는 문자열만 존재하는게 좋을 것 같네요.

Copy link
Contributor

@doggopawer doggopawer left a comment

Choose a reason for hiding this comment

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

주연님 코드 잘 봤습니다. 저의 코드컨벤션에 맞춰주셔서 감사합니다.
뭔가 구조적으로 바뀌면 다음부터 제가 찜목록 까지 같이 바꾸도록 하겠습니다.

Comment on lines +57 to +61
getMyDibsList: ({ cursorId }: GetMyDibsReq) =>
`/dibs/?${getQueryParams({
cursorId,
size: COMMON_PAGE_SIZE,
})}`,
Copy link
Contributor

Choose a reason for hiding this comment

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

좋은 의견 감사합니다. apiEndPoint는 문자열만 존재하는게 좋을 것 같네요.

@juyeon-park juyeon-park merged commit 13e56dd into develop Nov 24, 2023
2 checks passed
@juyeon-park juyeon-park deleted the NABI-300 branch November 24, 2023 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants