EffectActionState interface

Namespace @runic-artifex/views-effect · @runic-artifex/views-effect 0.7.0-preview.5

interface EffectActionState<A, E>

One consistent reading of an EffectAction. A new object is published for every change.

Properties

status

readonly status: EffectActionStatus;

No documentation.

pending

readonly pending: boolean;

True while a run is in flight.

value

readonly value: A | undefined;

The value of the last successful run.

error

readonly error: E | undefined;

The typed failure of the last run, such as ViewCommandFailed.

cause

readonly cause: Cause.Cause<E> | undefined;

The complete cause of the last failed or interrupted run, including defects.