observavir - v2.1.0
    Preparing search index...

    Type Alias ObservableInit<Value>

    Constructor input for Observable.

    type ObservableInit<Value> = {
        defaultValue: ExcludeNoUpdate<Value>;
        equalityCheck?: EqualityCheck<Simplify<ExcludeNoUpdate<Value>>>;
    }

    Type Parameters

    • Value
    Index

    Properties

    defaultValue: ExcludeNoUpdate<Value>

    Starting value

    equalityCheck?: EqualityCheck<Simplify<ExcludeNoUpdate<Value>>>

    Callback to use to check equality between the current value and new values from .setValue(). If the current value and the new value are equal, the new value will not be set and no listeners will be called. Set this to undefined to disable equality checking, which will then set values and fire listeners for every call of .setValue().

    strict reference equality