Using preload functions #376
Unanswered
catgirlinspace
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I'm trying to preload both Auth and Firestore in my App component. So far I have this. I am not using Suspense.
In other components I'm using useAuth and useUser. For example, this is a component I'm using for displaying info in the navbar.
Currently I get the error below. How would I fix this so it just displays a loading spinner thing while preloading?
ReactFire: "firebase/auth" not found. Please import it in your component, or call preloadAuth and wait for it to resolve. ReactFire can only auto-import Firebase libraries if Suspense mode is enabled.
Beta Was this translation helpful? Give feedback.
All reactions