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

🐛 리액트 쿼리 업데이트 오류 이슈 #140

Merged
merged 5 commits into from
Nov 29, 2023
Merged

Conversation

doggopawer
Copy link
Contributor

- 목적

관련 티켓 번호: 367


- 주요 변경 사항

  • 데이터 수정 후 리스트 페이지로 돌아올 시, 업데이트 렌더링이 되지 않는 에러를 수정했습니다.

기타 사항 (선택)


- 스크린샷 (선택)

@doggopawer doggopawer added the D-0 label Nov 29, 2023
@doggopawer doggopawer self-assigned this Nov 29, 2023
Copy link
Collaborator

@oaoong oaoong left a comment

Choose a reason for hiding this comment

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

요 버그 내용은 원인과 해결법을 공유해주시면 감사하겠습니다!! 궁금하네요


const lastElementRef = useRef<HTMLDivElement | null>(null)
const entry = useIntersectionObserver(lastElementRef, { threshold: 1.0 })

useEffect(() => {
if (isFetchingNextPage) {
if (isFetchingNextPage || !hasNextPage) {
Copy link
Contributor

Choose a reason for hiding this comment

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

!hasNextPage 이게 어떤 상황을 말하는 것인가요?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

"다음 페이지가 없으면" 이라는 뜻입니다.

@doggopawer
Copy link
Contributor Author

요 버그 내용은 원인과 해결법을 공유해주시면 감사하겠습니다!! 궁금하네요

네 안그래도 정리를 해야 할 것 같습니다.
또 같은 이슈가 발생하면 안될 것 같거든요

Base automatically changed from NABI-364 to develop November 29, 2023 07:46
@doggopawer doggopawer merged commit 9286e7f into develop Nov 29, 2023
1 check passed
@doggopawer doggopawer deleted the NABI-367 branch November 29, 2023 07:46
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