-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FirebaseError with useDocumentData Hook with [email protected] #315
Comments
FYI, when I extracted and redefined the relevant code directly into my environment, instead of using it from the library, I was able to run it without any errors.
|
Any fix for this yet? I am encountering the same issue with my project, although I am using |
Happens to me too I receive const ref = doc(db, 'projects', '20bcd701-35c4-49e7-b5c3-e0edcf642984') |
Issue: FirebaseError with useDocumentData Hook in React-Firebase Integration
Environment
Description
I'm encountering an error when trying to fetch a document from Firestore using the
useDocumentData
hook fromreact-firebase-hooks/firestore
. The goal is to retrieve data from a specific document in Firestore.Code Snippet
Here's the code snippet where the error occurs:
Error Message
However, I receive the following error:
Additional Context
I followed the documentation for react-firebase-hooks and made sure that the Firestore instance is initialized correctly. The path and ID provided are also correct and exist in the Firestore database.
I'm seeking assistance to understand the cause of this error and how to resolve it. Any insights or suggestions to fix this issue would be greatly appreciated.
The text was updated successfully, but these errors were encountered: