Skip to content

Latest commit

 

History

History
84 lines (49 loc) · 2.26 KB

_useobservable_.md

File metadata and controls

84 lines (49 loc) · 2.26 KB

reactfire

Globals / "useObservable"

Module: "useObservable"

Index

Interfaces

Variables

Functions

Variables

DEFAULT_TIMEOUT

Const DEFAULT_TIMEOUT: 30000 = 30000

Defined in src/useObservable.ts:7


preloadedObservables

Const preloadedObservables: Map<string, SuspenseSubject<any>> = ((globalThis as any) as ReactFireGlobals)._reactFirePreloadedObservables || new Map()

Defined in src/useObservable.ts:10

Functions

preloadObservable

preloadObservable<T>(source: Observable<T>, id: string): SuspenseSubject<T>

Defined in src/useObservable.ts:19

Type parameters:

Name
T

Parameters:

Name Type
source Observable<T>
id string

Returns: SuspenseSubject<T>


useObservable

useObservable<T>(observableId: string, source: Observable<T | any>, config?: ReactFireOptions): ObservableStatus<T>

Defined in src/useObservable.ts:41

Type parameters:

Name
T

Parameters:

Name Type Default value
observableId string -
source Observable<T | any> -
config ReactFireOptions {}

Returns: ObservableStatus<T>