title: Jetpack Compose + Navigation: navigating to to BottomBar destination from different BottomBar screen
body: <h3>Problem:</h3>
  <p>BottomBar has 4 destination :ScreenA, ScreenB, ScreenC and ScreenD.</p>
  <p>While on ScreenA pressing a button(not bottom bar item) I want to go to ScreenB with parameter.</p>
  <h3>Code:</h3>
  <p>NavGraph</p>
  <pre><code>AnimatedNavHost(navController = navController, startDestination = &quot;screen_a&quot;) {
      composable(&quot;screen_a&quot;) {
          ScreenA(navToScreenB = {
              navController.navigate(&quot;screen_b?param=1&quot;) {
          })
      }
      navigation(
          route = &quot;screen_b&quot;,
          startDestination = &quot;screen_b?param={param}&quot;,
      ) {
          composable(
              route = &quot;screen_b?param={param}&quot;,
              arguments = listOf(navArgument(&quot;param&quot;) { type = NavType.IntType })
          ) { backStackEntry -&gt;
              val param =  backStackEntry.arguments?.getBoolean(&quot;param&quot;) ?: 0
              ScreenB(param = param)
          }
          composable(route = &quot;screen_b/details&quot;) {
              ScreenB_details(...)
          }
      }
  }
  </code></pre>
  <p>BottomBar</p>
  <pre><code>fun BottomNavigation(navController: NavController, selectedNavigation: Screen) {
      val items = listOf(...)
      BottomNavigation(
          backgroundColor = MaterialTheme.colors.primary
      ) {
          items.forEach { item -&gt; BottomNavigationItem(
                  onClick = {
                      navController.navigate(item.screen.route) {
                          navController.graph.startDestinationRoute?.let { route -&gt;
                              popUpTo(route) { saveState = true }
                          }
                          launchSingleTop = true
                          restoreState = true
                      }
                  }
              )
          }
      }
  }
  </code></pre>
  <p>So far clicking the button on ScreenA navigates me to ScreenB but the param value is always 0 as I would never pass the arg which is passed in <code>navToScreenB</code> lambda.
  I'm  using compose_version = '1.2.0-alpha04' and &quot;androidx.navigation:navigation-compose:2.5.0-alpha03&quot;</p>