Skip to content
Prev Previous commit
Next Next commit
Changed the wrong observable reference
  • Loading branch information
davepwsmith committed Feb 11, 2020
commit 51a91e407d46d1694c3f8a7b08561b9b491cc342
4 changes: 2 additions & 2 deletions reactfire/firestore/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function useFirestoreDocData<T = unknown>(
): T {
return useObservable(
docData(ref, checkIdField(options)),
`useFirestoreDocDataOnce:${ref.path}:${JSON.stringify(options)}`,
'firestore docdata: ' + ref.path,
checkStartWithValue(options)
);
}
Expand All @@ -96,7 +96,7 @@ export function useFirestoreDocDataOnce<T = unknown>(
): T {
return useObservable(
docData(ref, checkIdField(options)).pipe(first()),
'firestore docdataonce: ' + ref.path,
`useFirestoreDocDataOnce:${ref.path}:${JSON.stringify(options)}`,
checkStartWithValue(options)
);
}
Expand Down