Skip to content

Latest commit

 

History

History
52 lines (31 loc) · 1.3 KB

File metadata and controls

52 lines (31 loc) · 1.3 KB
id AngularAsyncThrottler
title AngularAsyncThrottler

Interface: AngularAsyncThrottler<TFn, TSelected>

Defined in: angular-pacer/src/async-throttler/injectAsyncThrottler.ts:25

Extends

  • Omit<AsyncThrottler<TFn>, "store">

Type Parameters

TFn

TFn extends AnyAsyncFunction

TSelected

TSelected = { }

Properties

state

readonly state: Signal<Readonly<TSelected>>;

Defined in: angular-pacer/src/async-throttler/injectAsyncThrottler.ts:34

Reactive state signal that will be updated when the async throttler state changes

Use this instead of throttler.store.state


store

readonly store: Store<Readonly<AsyncThrottlerState<TFn>>>;

Defined in: angular-pacer/src/async-throttler/injectAsyncThrottler.ts:39

Deprecated

Use throttler.state instead of throttler.store.state if you want to read reactive state. The state on the store object is not reactive in Angular signals.