AlpineAsyncDebouncer
Defined in: async-debouncer/createAsyncDebouncer.ts:22
An AsyncDebouncer with framework-reactive selected state. All core methods remain available.
Extends
Omit<AsyncDebouncer<TFn>,"options"|"setOptions">
Type Parameters
TFn
TFn extends AnyAsyncFunction
TSelected
TSelected = {
}
Properties
options
options: AsyncDebouncerOptions<TFn> & AlpineAsyncDebouncerOptions<TFn, TSelected>;Defined in: async-debouncer/createAsyncDebouncer.ts:26
setOptions
setOptions: (options) => void;Defined in: async-debouncer/createAsyncDebouncer.ts:28
Parameters
options
Partial<AlpineAsyncDebouncerOptions<TFn, TSelected>>
Returns
void
state
readonly state: Readonly<TSelected>;Defined in: async-debouncer/createAsyncDebouncer.ts:34
Selected state. Pass a selector to opt in; the default selection is an empty object.
subscribe
subscribe: AlpinePacerSubscribe<AsyncDebouncerState<TFn>>;Defined in: async-debouncer/createAsyncDebouncer.ts:32
Subscribes a child owner to selected state with automatic cleanup.