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