From 0ebbc5b34ecedf7886726d8a457318debe50b41a Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 2 Jan 2024 12:24:03 +0800 Subject: [PATCH] Don't need nearReachEnd, use InView more --- src/components/timeline.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/timeline.jsx b/src/components/timeline.jsx index 25533018..3af0f3df 100644 --- a/src/components/timeline.jsx +++ b/src/components/timeline.jsx @@ -239,9 +239,10 @@ function Timeline({ setNearReachStart(nearReachStart); if (reachStart) { loadItems(true); - } else if (nearReachEnd || (reachEnd && showMore)) { - loadItems(); } + // else if (nearReachEnd || (reachEnd && showMore)) { + // loadItems(); + // } }, [], ); @@ -451,6 +452,8 @@ function Timeline({ {uiState === 'default' && (showMore ? ( { if (inView) { loadItems();