mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
decrease image debounce duration
This commit is contained in:
@@ -139,7 +139,7 @@ function ImageWithDebounce({
|
|||||||
unloaderIcon,
|
unloaderIcon,
|
||||||
...props
|
...props
|
||||||
}: ImageProps) {
|
}: ImageProps) {
|
||||||
const [debouncedSrc] = useDebouncedValue(src, 150, { waitForInitial: true });
|
const [debouncedSrc] = useDebouncedValue(src, 100, { waitForInitial: true });
|
||||||
const viewport = useInViewport();
|
const viewport = useInViewport();
|
||||||
const { inViewport, ref } = enableViewport ? viewport : { inViewport: true, ref: undefined };
|
const { inViewport, ref } = enableViewport ? viewport : { inViewport: true, ref: undefined };
|
||||||
const { className: containerPropsClassName, ...restContainerProps } = imageContainerProps || {};
|
const { className: containerPropsClassName, ...restContainerProps } = imageContainerProps || {};
|
||||||
|
|||||||
Reference in New Issue
Block a user