Use the right way

This commit is contained in:
Lim Chee Aun 2023-02-20 20:58:53 +08:00
parent cd70bf87db
commit 6e9661a70c

View file

@ -50,7 +50,7 @@ function Timeline({
if (firstLoad) {
setItems(value);
} else {
setItems([...items, ...value]);
setItems((items) => [...items, ...value]);
}
setShowMore(!done);
} else {