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