You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You may often find that you need to only initialize Firebase Auth with specific dependencies such as local persistence. In order to do this `reactfire` provides a hook called `useInitAuth`. This allows you to initialize the authApp correctly by passing in the required configuration.
228
+
229
+
In the below example you will see that we only pass persistance and no providers. You can add providers later as to avoid loading [large iFrame on mobile](https://github.com/firebase/firebase-js-sdk/issues/4946) issue.
> You can find out more from the [Firebase Docs - Custom Dependencies](https://firebase.google.com/docs/auth/web/custom-dependencies).
241
+
224
242
## Cloud Firestore
225
243
226
244
The following samples assume that `FirebaseAppProvider` and `FirestoreProvider` components exist higher up the component tree (see [setup instructions](#setup) for more detail).
0 commit comments