add console logs to troubleshoot infinite scroll on production

This commit is contained in:
Sidney Alcantara
2022-05-30 13:00:19 +10:00
parent fe285711e1
commit d02fcfc037
3 changed files with 9 additions and 1 deletions

View File

@@ -170,7 +170,7 @@ export default function Table() {
const isAtBottom =
target.clientHeight + target.scrollTop >= target.scrollHeight - offset;
if (!isAtBottom) return;
console.log("Scroll");
console.log("Scrolled to bottom");
// Call for the next page
setTablePage((p) => p + 1);
},