Skip to main content
Version: 2.0.0-alpha

Function: useInitialiseFirebase

useInitialiseFirebase(__namedParameters): InitialiseFirebaseResult

Function used to initialise Firebase, either by using the provided config, or by fetching it by Firebase Hosting, if not specified.

It works as a hook that gives you the loading state and the used configuration.

You most likely only need to use this if you are developing a custom app that is not using FirebaseCMSApp. You can also not use this component and initialise Firebase yourself.


__namedParameters.firebaseConfigundefined | Record<string, unknown>
__namedParameters.onFirebaseInit?(config: object) => void



Defined in


Need a hand?

We are happy to offer consulting services to help you get the most out of FireCMS.
Get in touch