DebounceHook

debounce hook will two params first one is the value. Can be a string or a number second one is the timout. This is optional, default is 300(ms)

Definition

type DebounceHook = (value: any, timeout?: number, returnUpdateFunction?: boolean) => any | [debouncedValue: any, updateValue: (value: any) => void]

Usage

import { DebounceHook } from 'uxp/components';

Last updated