Closed Manokii closed 1 year ago
React: 17.0.2
Firebase: 9.8.4
ReactFire: 4.2.1
Other (e.g. Node, browser, operating system) (if applicable):
This outputs the following: FirebaseError: Expected type 'Query', but it was: a custom DocumentReference object
FirebaseError: Expected type 'Query', but it was: a custom DocumentReference object
DocumentReference
useFirestoreDoc
useFirestoreDoc should accept DocumentReference
useFirestoreDoc thinks that it requires a CollectionReference or Query
CollectionReference
Query
I've got this issue as well, any updates?
Version info
React: 17.0.2
Firebase: 9.8.4
ReactFire: 4.2.1
Other (e.g. Node, browser, operating system) (if applicable):
Test case
This outputs the following:
FirebaseError: Expected type 'Query', but it was: a custom DocumentReference object
Steps to reproduce
DocumentReference
useFirestoreDoc
with the DocumentRefExpected behavior
useFirestoreDoc
should acceptDocumentReference
Actual behavior
useFirestoreDoc
thinks that it requires aCollectionReference
orQuery