DEV Community

corporate-cas
corporate-cas

Posted on

Startup logic on splash screen loops forever

I am using a splash screen to determine which route to send the user depending on their logged-in state.

My service checks the user state on firebase like so:

 Stream<User?> isUserLoggedIn() {
    var user = _firebaseAuth.authStateChanges()
    return user;
  }

My model calls the service and determines the user route based…

Discussion (0)