Skip to content

Commit b6b38db

Browse files
Fix bug
1 parent 4bb0930 commit b6b38db

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/firestore/exp/src/api/reference.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ export function getDoc<T>(
6363
const ref = cast<DocumentReference<T>>(reference, DocumentReference);
6464
const firestore = cast<Firestore>(ref.firestore, Firestore);
6565
return getFirestoreClient(firestore).then(async firestoreClient => {
66-
const viewSnapshot = await firestoreClient.getDocumentFromLocalCache(
67-
firestoreClient,
66+
const viewSnapshot = await firestoreClient.getDocumentViaSnapshotListener(
6867
ref._key
6968
);
7069
return convertToDocSnapshot(firestore, ref, viewSnapshot);

0 commit comments

Comments
 (0)