title: Reload fragment using Navigation Component
body: <p>I am using the navigation component to load my fragments like given here:
  <a href="https://developer.android.com/guide/navigation/navigation-getting-started" rel="noreferrer">https://developer.android.com/guide/navigation/navigation-getting-started</a></p>
  <pre><code>navController = findNavController(R.id.nav_host_fragment)
          // Passing each menu ID as a set of Ids because each
          // menu should be considered as top level destinations.
          val appBarConfiguration = AppBarConfiguration(
              setOf(
                  R.id.navigation_opt1,
                  R.id.navigation_opt2,
                  R.id.navigation_opt3,
                  R.id.navigation_more
              )
          )
          setupActionBarWithNavController(navController, appBarConfiguration)
          navView.setupWithNavController(navController)
  </code></pre>
  <p>I also have a <code>Toolbar</code> at the top with a Spinner. I want to reload/refresh the <code>fragment</code> &amp; its view model when the <code>spinner</code> item is selected. I tried the below code for reloading but it isn't working. Also, I know we should not be using <code>fragmentManager</code> in Navigation Component</p>
  <pre><code>val ftr: FragmentTransaction = requireFragmentManager().beginTransaction()
          ftr.detach(this).attach(this).commit()
  </code></pre>
  <p>Any help would be appreciated.</p>