Flush instead of cancel

pull/49/head
Lim Chee Aun 2023-01-30 19:36:47 +08:00
rodzic 0a4c3069dd
commit 1fed35f674
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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