2
0

🚑 (results) Fix broken infinite scroll

This commit is contained in:
Baptiste Arnaud
2023-10-04 08:14:25 +02:00
parent ee800d5ba2
commit 2bc9dfb503

View File

@@ -205,7 +205,9 @@ export const ResultsTable = ({
return () => {
observer.disconnect()
}
}, [handleObserver])
// We need to rerun this effect when the bottomElement changes
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [handleObserver, bottomElement.current])
return (
<Stack maxW="1600px" px="4" overflowY="hidden" spacing={6}>