Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Component used: Navigation, androidx.navigation:navigation-compose Version used: 2.4.0-alpha06 Devices/Android versions reproduced on: 11
When using
NavHost
composable in a Fragment, the start destination is not displayed. This only happens when using the composable in a Fragment with 2.4.0-alpha06. It works fine in 2.4.0-alpha05 or when usingNavHost
in an Activity.It looks like the backStackEntry is null, then lifecycle is updated but NavHost isn't recomposed so the destination content is not displayed.
NavHost
composable is not recomposed when theNavBackstackEntry
state is changed. So the initial