mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 08:48:47 +01:00
Flush instead of cancel
This commit is contained in:
parent
0a4c3069dd
commit
1fed35f674
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ function StatusPage() {
|
|||
});
|
||||
onScroll();
|
||||
return () => {
|
||||
onScroll.cancel();
|
||||
onScroll.flush();
|
||||
scrollableRef.current?.removeEventListener('scroll', onScroll);
|
||||
};
|
||||
}, [id, uiState !== 'loading']);
|
||||
|
|
Loading…
Reference in a new issue