Globals / "useObservable"
• Const
DEFAULT_TIMEOUT: 30000 = 30000
Defined in src/useObservable.ts:7
• Const
preloadedObservables: Map<string, SuspenseSubject<any>> = ((globalThis as any) as ReactFireGlobals)._reactFirePreloadedObservables || new Map()
Defined in src/useObservable.ts:10
▸ preloadObservable<T>(source
: Observable<T>, id
: string): SuspenseSubject<T>
Defined in src/useObservable.ts:19
Name |
---|
T |
Name | Type |
---|---|
source |
Observable<T> |
id |
string |
Returns: SuspenseSubject<T>
▸ useObservable<T>(observableId
: string, source
: Observable<T | any>, config?
: ReactFireOptions): ObservableStatus<T>
Defined in src/useObservable.ts:41
Name |
---|
T |
Name | Type | Default value |
---|---|---|
observableId |
string | - |
source |
Observable<T | any> | - |
config |
ReactFireOptions | {} |
Returns: ObservableStatus<T>