Skip to content

[FR]: A promise that will initialize firebase (pause the code until firebase is working) #13533

Open
@Sameszop

Description

@Sameszop

Description

  1. Before your firebase code can run, firebase always needs a few moments until it can run.

  2. 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)

  3. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions