Following
this official documentation on conditional navigation, I have a question regarding Compose navigation. In my home screen I have a Scaffold with a bottom bar. For one of the tab I display the account screen. And from the AccountViewModel I listen if the user is logged or not. If not I want to show the login screen incentive. And after user is successfully signIn/signUp, I popUp back to the account screen
The login feature is in a separate module, so I have a dedicated NestedGraph for all login screens (login incentive, signIn, signUp....). My question is: where to add this nested graph ? Should it be inside a new NavHost in my AccountScreen ? Or should it be somewhere else, like inside my Home NavHost ? 🤔