VueThrottler
Defined in: throttler/useThrottler.ts:23
A Throttler with framework-reactive selected state. All core methods remain available.
Extends
Omit<Throttler<TFn>,"options"|"setOptions">
Type Parameters
TFn
TFn extends AnyFunction
TSelected
TSelected = {
}
Properties
options
options: ThrottlerOptions<TFn> & VueThrottlerOptions<TFn, TSelected>;Defined in: throttler/useThrottler.ts:27
setOptions
setOptions: (options) => void;Defined in: throttler/useThrottler.ts:28
Parameters
options
Partial<VueThrottlerOptions<TFn, TSelected>>
Returns
void
state
readonly state: Readonly<ShallowRef<TSelected>>;Defined in: throttler/useThrottler.ts:32
Selected state. Pass a selector to opt in; the default selection is an empty object.
Subscribe
Subscribe: VuePacerSubscribe<ThrottlerState<TFn>>;Defined in: throttler/useThrottler.ts:30
Subscribes a scoped slot to state without re-rendering the utility owner.