in src/components/InfiniteScroll/index.tsx [18:31]
function handleScroll(e: React.UIEvent<HTMLDivElement>) {
if (onScroll) {
onScroll(e);
}
const el = wrapperRef.current;
if (!el) return;
const nearBottom = getToBottom(el) <= distance;
if (nearBottom) {
onLoadMore();
}
}