import { useDebounceValue } from "https://deno.land/x/netzo@0.5.70/deps/usehooks-ts.ts";
Returns a debounced version of the provided value, along with a function to update it.
Examples
const [debouncedValue, updateDebouncedValue] = useDebounceValue(inputValue, 500, { leading: true });
const [debouncedValue, updateDebouncedValue] = useDebounceValue(inputValue, 500, { leading: true });
Returns
[T, DebouncedState<(value: T) => void>]
An array containing the debounced value and the function to update it.