Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork346
useFirestore breaks the app when used in a function in the utils folder and the page is refreshed (nuxt)#1567
-
ReproductionSteps to reproduce the bugI have the following code in a file called "firestoreReferences.ts" in the nuxt utils folder:
Expected behaviorThe references should be auto imported and used throughout the app with no issue. Actual behaviorOn page refresh, the app breaks with the following error: Firebase: No Firebase App '[DEFAULT]' has been created - call initializeApp() first (app/no-app). If I just access the page, without refreshing, it works fine, but it is because maybe firebase has already loaded. Additional informationIs this a bad practice? or is there a way to ensure firebase has loaded before using the useFirestore composable? |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 1 reply
-
Hi@StefanGhiban, could you resolve this problem? I have something similar that blocks me since quite a while... |
BetaWas this translation helpful?Give feedback.
All reactions
-
I created an issue#1588 (which was then routed to the discussion#1589) for this problem |
BetaWas this translation helpful?Give feedback.
All reactions
This discussion was converted from issue #1566 on August 16, 2024 16:41.