kopia lustrzana https://github.com/cheeaun/phanpy
Need to cancel the debounce
rodzic
76aeff47ae
commit
8834c03d7a
|
@ -47,6 +47,7 @@ function StatusPage({ id }) {
|
|||
});
|
||||
onScroll();
|
||||
return () => {
|
||||
onScroll.cancel();
|
||||
scrollableRef.current?.removeEventListener('scroll', onScroll);
|
||||
};
|
||||
}, [id, uiState !== 'loading']);
|
||||
|
|
Ładowanie…
Reference in New Issue