UNPKG

@ngneat/loadoff

Version:

<p align="center"> <img width="20%" height="20%" src="./logo.svg"> </p>

8 lines (7 loc) 458 B
import { OperatorFunction } from 'rxjs'; import { AsyncState } from './toAsyncState'; /** * Operator that retains the previous response on a new emission of an AsyncState item. * This can be useful for implementing a refresh mechanism, where you want to keep displaying the old value while fetching a new value */ export declare function retainResponse<T, E = any>(startWithValue?: AsyncState<T, E>): OperatorFunction<AsyncState<T, E>, AsyncState<T, E>>;