Skip to content
Prev Previous commit
Next Next commit
Update observable strings inline with #210
  • Loading branch information
davepwsmith committed Feb 11, 2020
commit 244685ef4b3fe02d86a91f2921cdd2ca13da7538
4 changes: 2 additions & 2 deletions reactfire/firestore/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function useFirestoreDocOnce<T = unknown>(
): T extends {} ? T : firestore.DocumentSnapshot {
return useObservable(
doc(ref).pipe(first()),
'firestore doconce: ' + ref.path,
`useFirestoreDocOnce:${ref.path}:${JSON.stringify(options)}`,
options ? options.startWithValue : undefined
);
}
Expand All @@ -79,7 +79,7 @@ export function useFirestoreDocData<T = unknown>(
): T {
return useObservable(
docData(ref, checkIdField(options)),
'firestore docdata: ' + ref.path,
`useFirestoreDocDataOnce:${ref.path}:${JSON.stringify(options)}`,
checkStartWithValue(options)
);
}
Expand Down