Open mangomkt opened 4 years ago
Have you tried using the onInit function instead? It fires when the firebase connection is established.
@u12206050 OK I will try that.... another thing I noticed is when I deploy the site (I am using netlify) it seems there is some kind of cache... I make an update to the firestore and it is not showing unless I redeploy
When I try to use this.$db.collection('events').get().then(snapshot => console.log(snapshot.size))
I get this.$db is not a function
It seems the mounted is running before firebase is up and running