title: kotlin android nav graph go back causes recreate a old fragment
body: <p>I Have huge probleme in my project when I go back from fragment B to fragment A just like this :</p>
  <pre><code>findNavController().navigateUp()
  </code></pre>
  <p>or</p>
  <pre><code>activity?.onBackPressed()
  </code></pre>
  <p>causes that a old fragment is recreated And I do not why</p>
  <p>this is my action:</p>
  <pre><code>&lt;action
              android:id=&quot;@+id/action_fragmentA_to_fragmentB&quot;
              app:destination=&quot;@id/fragmentB&quot; /&gt;
  
  
  
  
  
  
   val action = ScanningFragmentDirections.action_fragmentA_to_fragmentB(
              scanningViewModel.containerLevel,
              container
          )
          NavHostFragment.findNavController(this).navigate(action)
  
  
  
  override fun onCreateView(
      inflater: LayoutInflater, container: ViewGroup?,
      savedInstanceState: Bundle?
  ): View? {
       binding =
          DataBindingUtil.inflate(inflater, R.layout.scanning_fragment, container, false)
      binding!!.viewmodel = scanningViewModel
      binding!!.lifecycleOwner = this
      return binding!!.root
  }
  
  override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
      super.onViewCreated(view, savedInstanceState)
      init()
  }
  </code></pre>