Creates a resource representing a debounced version of the source signal.
API
function debounced<T>(
source: () => T,
wait: NoInfer<DebounceTimer<T>>,
options?: NoInfer<DebouncedOptions<T>> | undefined,
): Resource<T>;@paramsource
() => TThe source signal to debounce.
@paramwait
NoInfer<DebounceTimer<T>>The amount of time to wait before calling the source signal, or a function that returns a promise that resolves when the debounced value should be updated.
Jump to details