mirror of
https://github.com/jeffvli/feishin.git
synced 2026-11-28 04:46:48 -08:00
decrease image debounce duration
This commit is contained in:
1 parent
4d81dc49fa
commit
7613bc32c2
1 file changed
+1
-1
@@ -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