Update infinite scroll for db optimize configuration
This commit is contained in:
parent
e03c3d58ce
commit
531d4efcb5
@ -129,7 +129,9 @@ export default function InfinitePhotoScroll({
|
|||||||
} as any), [data, mutate]);
|
} as any), [data, mutate]);
|
||||||
|
|
||||||
useVisible({ ref: buttonContainerRef, onVisible: () => {
|
useVisible({ ref: buttonContainerRef, onVisible: () => {
|
||||||
if (size === 0) { advance(); }
|
if (ADMIN_DB_OPTIMIZE_ENABLED && size === 0) {
|
||||||
|
advance();
|
||||||
|
}
|
||||||
}});
|
}});
|
||||||
|
|
||||||
const renderMoreButton = () =>
|
const renderMoreButton = () =>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user