diff options
Diffstat (limited to 'src/components/hooks')
-rw-r--r-- | src/components/hooks/useThrottledValue.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/hooks/useThrottledValue.ts b/src/components/hooks/useThrottledValue.ts index 5764c547e..29a11b935 100644 --- a/src/components/hooks/useThrottledValue.ts +++ b/src/components/hooks/useThrottledValue.ts @@ -2,7 +2,7 @@ import {useEffect, useRef, useState} from 'react' import {useNonReactiveCallback} from '#/lib/hooks/useNonReactiveCallback' -export function useThrottledValue<T>(value: T, time?: number) { +export function useThrottledValue<T>(value: T, time: number) { const pendingValueRef = useRef(value) const [throttledValue, setThrottledValue] = useState(value) |