mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-09 01:26:24 +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();
|
onScroll();
|
||||||
return () => {
|
return () => {
|
||||||
|
onScroll.cancel();
|
||||||
scrollableRef.current?.removeEventListener('scroll', onScroll);
|
scrollableRef.current?.removeEventListener('scroll', onScroll);
|
||||||
};
|
};
|
||||||
}, [id, uiState !== 'loading']);
|
}, [id, uiState !== 'loading']);
|
||||||
|
|
Loading…
Reference in a new issue