Defined in: rate-limiter/useRateLimiter.ts:25
A RateLimiter with framework-reactive selected state. All core methods remain available.
TFn extends AnyFunction
TSelected = { }
options: RateLimiterOptions<TFn> & OctaneRateLimiterOptions<TFn, TSelected>;Defined in: rate-limiter/useRateLimiter.ts:29
setOptions: (options) => void;Defined in: rate-limiter/useRateLimiter.ts:31
Partial<OctaneRateLimiterOptions<TFn, TSelected>>
void
readonly state: Readonly<TSelected>;Defined in: rate-limiter/useRateLimiter.ts:37
Selected state. Pass a selector to opt in; the default selection is an empty object.
Subscribe: OctanePacerSubscribe<RateLimiterState>;Defined in: rate-limiter/useRateLimiter.ts:35
Selects state in a child without subscribing the utility owner.