@microsoft/fast-element > ComputedState
ComputedState type
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
State whose value is computed from other dependencies.
Signature:
export type ComputedState<T> = ReadonlyState<T> & Disposable & {
subscribe(subscriber: Subscriber): void;
unsubscribe(subscriber: Subscriber): void;
};
References: ReadonlyState, Disposable, Subscriber