Юниверс DG SDK UI
v2.15.0

Интерфейс IDerivation

A derivation is everything that can be derived from the state (all the atoms) in a pure manner. See https://medium.com/@mweststrate/becoming-fully-reactive-an-in-depth-explanation-of-mobservable-55995262a254#.xvbh6qd74

interface IDerivation {
    __mapid: string;
    dependenciesState: IDerivationState;
    isTracing: TraceMode;
    name: string;
    newObserving: IObservable[] | null;
    observing: IObservable[];
    requiresObservable?: boolean;
    runId: number;
    unboundDepsCount: number;
    onBecomeStale(): void;
}

Иерархия (Просмотр сводки)

Реализован в

Индекс

Свойства

__mapid: string
dependenciesState: IDerivationState
isTracing: TraceMode
name: string
newObserving: IObservable[] | null
observing: IObservable[]
requiresObservable?: boolean

warn if the derivation has no dependencies after creation/update

runId: number

Id of the current run of a derivation. Each time the derivation is tracked this number is increased by one. This number is globally unique

unboundDepsCount: number

amount of dependencies used by the derivation in this run, which has not been bound yet.

Методы

  • Возвращает void