UmbClassState

  • This state can hold class instance which has a equal method to compare in coming instances for changes.

Type Parameters

Hierarchy (View Summary, Expand)

Constructors

Properties

_subject: BehaviorSubject<T>

Accessors

  • get value(): T

    Returns T

    Observable that

    • Holds the current data of this state.
    const myState = new UmbArrayState('Hello world');
    console.log("Value is: ", myState.value);

Methods

  • Returns Observable<T>

    Observable that the State casts to.

    asObservable

    • Creates a new Observable with this State as the source. Observe this to subscribe to its value and future changes.
    const myState = new UmbArrayState('Hello world');

    this.observe(myState, (latestStateValue) => console.log("Value is: ", latestStateValue));
  • Returns T

    The current data of this state.

    getValue

    • Provides the current data of this state.
    const myState = new UmbArrayState('Hello world');
    console.log("Value is: ", myState.value);
MMNEPVFCICPMFPCPTTAAATR