Skip to content

Commit

Permalink
[fix] 홈 화면 중복되는 아이템 불러오는 문제 개선 (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
tolluset committed Apr 13, 2024
1 parent 76c1717 commit a45af38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/(home)/hooks/useProductListViewModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const useProductListViewModel = () => {

const { ref } = useInView({
onChange(inView) {
if (inView && hasNextData) {
if (inView && products && hasNextData) {
fetchMoreProducts();
}
},
Expand Down

0 comments on commit a45af38

Please sign in to comment.