(ref: DocumentReference<T>, options?: ReactFireOptions<T>)
| 40 | * You can preload data for this hook by calling `preloadFirestoreDoc` |
| 41 | */ |
| 42 | export function useFirestoreDoc<T = DocumentData>(ref: DocumentReference<T>, options?: ReactFireOptions<T>): ObservableStatus<DocumentSnapshot<T>> { |
| 43 | const observableId = getDocObservableId(ref); |
| 44 | const observable$ = doc(ref); |
| 45 | |
| 46 | return useObservable(observableId, observable$, options); |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Get a firestore document and don't subscribe to changes |
no test coverage detected