Search
    Preparing search index...

    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: null | IObservable[];
        observing: IObservable[];
        requiresObservable?: boolean;
        runId: number;
        unboundDepsCount: number;
        onBecomeStale(): void;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    __mapid: string
    dependenciesState: IDerivationState
    isTracing: TraceMode
    name: string
    newObserving: null | IObservable[]
    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.

    Methods

    • Returns void