Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PromisedComputed<T>

Type parameters

  • T

Hierarchy

  • PromisedComputed

Implements

Index

Constructors

Accessors

Methods

Constructors

constructor

  • new PromisedComputed(init: T, fetch: () => PromiseLike<T> | T, disableReactionChecking?: undefined | false | true): PromisedComputed
  • Parameters

    • init: T
    • fetch: () => PromiseLike<T> | T
        • (): PromiseLike<T> | T
        • Returns PromiseLike<T> | T

    • Optional disableReactionChecking: undefined | false | true

    Returns PromisedComputed

Accessors

busy

  • get busy(): boolean
  • Returns boolean

Methods

get

  • get(): T

getNonReactive

  • getNonReactive(): T
  • This exists purely to support scenarios such as unit tests that want to verify the most recent value outside of a reactive context

    Returns T

refresh

  • refresh(): void

Generated using TypeDoc