-
Notifications
You must be signed in to change notification settings - Fork 408
-
Getting this error while trying to modify the tutorial for my needs.
Here is my code
import React from 'react'; import { FirebaseAppProvider, useFirestoreDocData, useFirestore, SuspenseWithPerf } from 'reactfire' const firebaseConfig = { /* Add your config from the Firebase Console */ apiKey: "x", // Auth / General Use appId: "x", // General Use projectId: "x", // General Use authDomain: "x", // Auth with popup/redirect databaseURL: "x", // Realtime Database //storageBucket: "x", // Storage //messagingSenderId: "x", // Cloud Messaging //measurementId: "x" // Analytics }; function PixFirebaseData(){ const dataRef = useFirestore().collection('events') const burrito = useFirestoreDocData(dataRef); console.log(burrito) //return <p>The burrito is {burrito.events.event.name}!</p>; return <p>Test</p> } const TemplateDefault = () =>{ return <FirebaseAppProvider firebaseConfig={firebaseConfig}> <h1>Essai Firebase</h1> <SuspenseWithPerf fallback={<p>Loading Firebase</p>} traceId={'testload'}> <PixFirebaseData /> </SuspenseWithPerf> </FirebaseAppProvider> } export default TemplateDefault;
I've bee trying to debug this for a while but I don't even know what pushes this error. Anybody got that one before?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment