OctaneAsyncDebouncer
Defined in: async-debouncer/useAsyncDebouncer.ts:25
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> & OctaneAsyncDebouncerOptions<TFn, TSelected>;Defined in: async-debouncer/useAsyncDebouncer.ts:29
setOptions
setOptions: (options) => void;Defined in: async-debouncer/useAsyncDebouncer.ts:31
Parameters
options
Partial<OctaneAsyncDebouncerOptions<TFn, TSelected>>
Returns
void
state
readonly state: Readonly<TSelected>;Defined in: async-debouncer/useAsyncDebouncer.ts:37
Selected state. Pass a selector to opt in; the default selection is an empty object.
Subscribe
Subscribe: OctanePacerSubscribe<AsyncDebouncerState<TFn>>;Defined in: async-debouncer/useAsyncDebouncer.ts:35
Selects state in a child without subscribing the utility owner.