mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 14:16:39 +01:00
Need to cancel the debounce
This commit is contained in:
parent
76aeff47ae
commit
8834c03d7a
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ function StatusPage({ id }) {
|
|||
});
|
||||
onScroll();
|
||||
return () => {
|
||||
onScroll.cancel();
|
||||
scrollableRef.current?.removeEventListener('scroll', onScroll);
|
||||
};
|
||||
}, [id, uiState !== 'loading']);
|
||||
|
|
Loading…
Reference in a new issue