Wrapping my <Router /> component with <AuthIsLoaded /> makes the app load indefinitely.
Apparently, the auth isn't loaded and it just stays loading.
What is the expected behavior?
It should just take a while to load the auth and then the app should work as normal
Steps to reproduce
I've had a hard time reproducing this issue. I started having it in recent projects. Just creating a new React project and adding a few dependencies seems to trigger it. Sometimes it disappears out of the blue.
Which versions of dependencies, and which browser and OS are affected by this issue? Did this work in previous versions or setups?
Here are the versions of dependencies that might be useful to know:
I found out the reason was sometimes Firebase doesn't initialize before the auth state is checked. Moving the Firebase initialization so it's always initialized before checking the auth state solved the issue.
What is the current behavior?
Wrapping my
<Router />
component with<AuthIsLoaded />
makes the app load indefinitely. Apparently, the auth isn't loaded and it just stays loading.What is the expected behavior?
It should just take a while to load the auth and then the app should work as normal
Steps to reproduce
I've had a hard time reproducing this issue. I started having it in recent projects. Just creating a new React project and adding a few dependencies seems to trigger it. Sometimes it disappears out of the blue.
Which versions of dependencies, and which browser and OS are affected by this issue? Did this work in previous versions or setups?
Here are the versions of dependencies that might be useful to know:
I apologize for the vagueness of the description. I might try to reproduce the issue in a sandbox.