Does navigation-compose currently support nested `...
# compose
r
Does navigation-compose currently support nested `NavHost`s? My use case is that I have a sign up flow and I’d like to move to a bottom navigation view when the user signs in. Following the docs the
Scaffold
with bottom navigation uses a NavHostController to define each screen in the bottom navigation. When I declare my 2nd nav host I get the error
Copy code
java.lang.IllegalStateException: ViewModelStore should be set before setGraph call
i
You need to use a separate
rememberNavController()
for the inner one
But that's generally the wrong thing to do: just don't emit your bottom nav when you're on your login destinations
r
Figured that out right after I typed that question out 🤦‍♂️ thanks @Ian Lake 🙂
Ahh ok I see!