Need to cancel the debounce

pull/47/head
Lim Chee Aun 2023-01-17 08:56:13 +08:00
rodzic 76aeff47ae
commit 8834c03d7a
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -47,6 +47,7 @@ function StatusPage({ id }) {
});
onScroll();
return () => {
onScroll.cancel();
scrollableRef.current?.removeEventListener('scroll', onScroll);
};
}, [id, uiState !== 'loading']);