Open
Description
Description
-
Before your firebase code can run, firebase always needs a few moments until it can run.
-
Mostly used is OnAuthStateChanged() which executes the code when a user is found.
However that does not work when there is no user or when the code that needs to know if there is a user starts immidiatly.
So there is always a timing problem which can be hard to solve (To use a timer for example is not how you want the code to work) -
To have a promise like await initFirebase() that will wait until firebase is ready to be used would be fantastic.
Thank you for your time
API Proposal
No response
Firebase Product(s)
Performance