nicolium: also add same logic to ScrollableList
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -202,7 +202,7 @@ const ScrollableList = React.forwardRef<VirtuosoHandle, IScrollableList>(
|
||||
};
|
||||
|
||||
const handleEndReached = () => {
|
||||
if (autoloadMore && hasMore && onLoadMore) {
|
||||
if (autoloadMore && hasMore && onLoadMore && !isLoading) {
|
||||
onLoadMore();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user