ReactFire reference docs / ObservableStatusLoading
Defined in: src/useObservable.ts:78
ObservableStatusBase<T>
T
data:
undefined
Defined in: src/useObservable.ts:80
The most recent value.
If initialData is passed in, the first value of data will be the valuea provided in initialData UNLESS the underlying observable is ready, in which case it will skip initialData.
ObservableStatusBase.data
error:
Error|undefined
Defined in: src/useObservable.ts:60
Any error that may have occurred in the underlying observable
ObservableStatusBase.error
firstValuePromise:
Promise<void>
Defined in: src/useObservable.ts:64
Promise that resolves after first emit from observable
ObservableStatusBase.firstValuePromise
hasEmitted:
false
Defined in: src/useObservable.ts:81
Indicates whether the hook has emitted a value at some point
If initialData is passed in, this will be true.
ObservableStatusBase.hasEmitted
isComplete:
boolean
Defined in: src/useObservable.ts:50
If this is true, the hook will be emitting no further items.
ObservableStatusBase.isComplete
status:
"loading"
Defined in: src/useObservable.ts:79
The loading status.
loading: Waiting for the first value from an observableerror: Something went wrong. CheckObservableStatus.errorfor more detailssuccess: The hook has emitted at least one value
If initialData is passed in, this will skip loading and go straight to success.
ObservableStatusBase.status