Merge branch 'scrolltop-fix' into 'main'
Fix ScrollTopButton not loading new posts when scrolled to the top Closes #871 See merge request soapbox-pub/soapbox!2816
This commit is contained in:
commit
374f99405e
1 changed files with 2 additions and 2 deletions
|
@ -44,10 +44,10 @@ const ScrollTopButton: React.FC<IScrollTopButton> = ({
|
|||
|
||||
/** Unload feed items if scrolled to the top. */
|
||||
const maybeUnload = useCallback(() => {
|
||||
if (autoload && scrolledTop) {
|
||||
if (autoload && scrolledTop && count) {
|
||||
onClick();
|
||||
}
|
||||
}, [autoload, scrolledTop, onClick]);
|
||||
}, [autoload, scrolledTop, count, onClick]);
|
||||
|
||||
/** Set state while scrolling. */
|
||||
const handleScroll = useCallback(throttle(() => {
|
||||
|
|
Loading…
Reference in a new issue