Skip to content

Commit fbc06f4

Browse files
committed
[BOOK-212] refactor: InfinityLazyColumn onLoadMore 조건 보완
데이터가 충분히 존재할때만(전체 아이템 수가 limitCount보다 많을때) onLoadMore이 트리거 되도록
1 parent 711bf18 commit fbc06f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/ui/src/main/kotlin/com/ninecraft/booket/core/ui/component/InfinityLazyColumn.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private fun LazyListState.onLoadMore(
8383
}
8484

8585
LaunchedEffect(reached) {
86-
if (reached) action()
86+
if (reached && layoutInfo.totalItemsCount > limitCount) action()
8787
}
8888
}
8989

0 commit comments

Comments
 (0)