Skip to main content
Version: 2.0.0

Function: useInitialiseFirebase

useInitialiseFirebase(«destructured»): 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.

Parameters

NameType
«destructured»Object
› authDomain?string
› firebaseConfigundefined | Record<string, unknown>
› name?string
› onFirebaseInit?(config: object, firebaseApp: FirebaseApp) => void

Returns

InitialiseFirebaseResult

Defined in

lib/src/firebase_app/hooks/useInitialiseFirebase.ts:37

Enterprise or start-up?

Learn how to get the most out of your project with the help of our consulting team.
Learn more
Sign up to our newsletter to get the latest news and updates. No spam!