0π
β
I used setTimeout(function () { methotToCall(); }, 1000); thanks to this thread β stackoverflow.com/questions/24849/β¦ and it "worked" so Iβm gonna close this one. Iβm sure this is not the right method, but it will work for a time. Thankβs for help π
0π
If I correctly understand your question, you need to fetch the Firestore data in one of the lifecycle hooks before the component is mounted, for example created
or mounted
.
In the lifecycle hook, you asynchronously read the data from Firestore and compare the result to the desired values.
Source:stackexchange.com