kopia lustrzana https://github.com/cheeaun/phanpy
Flush instead of cancel
rodzic
0a4c3069dd
commit
1fed35f674
|
@ -60,7 +60,7 @@ function StatusPage() {
|
|||
});
|
||||
onScroll();
|
||||
return () => {
|
||||
onScroll.cancel();
|
||||
onScroll.flush();
|
||||
scrollableRef.current?.removeEventListener('scroll', onScroll);
|
||||
};
|
||||
}, [id, uiState !== 'loading']);
|
||||
|
|
Ładowanie…
Reference in New Issue