Still need this length check, this "done" is not reliable

This commit is contained in:
Lim Chee Aun 2023-08-07 11:39:42 +08:00
parent 0b3875c2cf
commit 9b23e051e2

View file

@ -65,6 +65,7 @@ function Timeline({
} else { } else {
setItems((items) => [...items, ...value]); setItems((items) => [...items, ...value]);
} }
if (!value.length) done = true;
setShowMore(!done); setShowMore(!done);
} else { } else {
setShowMore(false); setShowMore(false);