Function voidablePermanentCache

  • Cache the last value of the observable Will cache permanently. Will stay alive even with 0 subscribers Complete observable to dispose Every new value voids the observable until a value is emitted from the mapped observable

    Type Parameters

    • T
    • TOut

    Parameters

    • mapFunc: ((value: T) => Observable<TOut>)

      Function to generate an observable which populates the main observable after being voided

        • (value): Observable<TOut>
        • Parameters

          • value: T

          Returns Observable<TOut>

    • releaseOnValue: boolean = false

      If true the cache will reset when there are no subscribers and a new value is emitted from the source

    Returns OperatorFunction<T, TOut>