title: Does Navigation Components popBackStack() retains Fragment state?
body: <p>When I navigate from one Fragment to another with the new Navigation Components, I can do it successfully with the following:</p>
  
  <pre><code>btn_walk.setOnClickListener(Navigation.createNavigateOnClickListener(R.id.next_action))
  </code></pre>
  
  <p>Now, if I pop the backstack from the destination Fragment with</p>
  
  <pre><code>findNavController().popBackStack()
  </code></pre>
  
  <p>The Fragment that launched that Fragments recreates itself again, but the state is not being saved, I have been looking around to see how to fix it, but I don't really know if actually how to do an <code>.add</code> function with the <code>navigate()</code> from Navigation components</p>
  
  <p><a href="https://i.stack.imgur.com/GduKU.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GduKU.gif" alt="enter image description here"></a></p>
  
  <p>This gif shows the navigation from one fragment to another, when popping the stack from the destination fragment, it recreates the fragment that launched that one instead of saving the state of it.</p>
  
  <p>Using the <code>fragmenttransaction.add()</code> method does maintain the instance of that fragment alive also if I pop the back stack.</p>
  
  <p>Is there any way to do the same with Navigation Components ?</p>
  
  <p>I have also readed this <a href="https://stackoverflow.com/questions/54286392/navigation-architecture-fragment-reload-problem">Navigation Architecture Fragment Reload Problem</a> but it's unclear how it should be solved.</p>