We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bb0930 commit b6b38dbCopy full SHA for b6b38db
packages/firestore/exp/src/api/reference.ts
@@ -63,8 +63,7 @@ export function getDoc<T>(
63
const ref = cast<DocumentReference<T>>(reference, DocumentReference);
64
const firestore = cast<Firestore>(ref.firestore, Firestore);
65
return getFirestoreClient(firestore).then(async firestoreClient => {
66
- const viewSnapshot = await firestoreClient.getDocumentFromLocalCache(
67
- firestoreClient,
+ const viewSnapshot = await firestoreClient.getDocumentViaSnapshotListener(
68
ref._key
69
);
70
return convertToDocSnapshot(firestore, ref, viewSnapshot);
0 commit comments