Open History to see the last commit
Defined in: debouncer/createDebouncer.ts:22
A Debouncer with framework-reactive selected state. All core methods remain available.
Extends#
Omit<Debouncer<TFn>,"options"|"setOptions">
Type Parameters#
TFn#
TFn extends AnyFunction
TSelected#
TSelected = {
}
Properties#
options#
options: DebouncerOptions<TFn> & AlpineDebouncerOptions<TFn, TSelected>;
Defined in: debouncer/createDebouncer.ts:26
setOptions#
setOptions: (options) => void;
Defined in: debouncer/createDebouncer.ts:27
Parameters#
options#
Partial<AlpineDebouncerOptions<TFn, TSelected>>
Returns#
void
state#
readonly state: Readonly<TSelected>;
Defined in: debouncer/createDebouncer.ts:31
Selected state. Pass a selector to opt in; the default selection is an empty object.
subscribe#
subscribe: AlpinePacerSubscribe<DebouncerState<TFn>>;
Defined in: debouncer/createDebouncer.ts:29
Subscribes a child owner to selected state with automatic cleanup.