title: NavigationComponents retaining fragment state without advanced example
body: <p>I have a fragment that holds a list , but when I navigate from <code>FragmentA()</code> to <code>FragmentB()</code> with </p>
  
  <pre><code>findNavController().navigate(R.id.navigation_b)
  </code></pre>
  
  <p>And come back, the view recreates itself and so on the list is duplicated with the contents of the previous loaded list</p>
  
  <p>What I have tried</p>
  
  <ol>
  <li>Clearing the list before adding it </li>
  <li>onSaveInstanceState does not work for fragments</li>
  </ol>
  
  <p>Here when I set this data it is show properly on <code>FragmentA()</code> but if I go to <code>FragmentB()</code> and comeback , it is duplicated and the view is also recreated, I need a way to keep this fragment alive when navigating back</p>
  
  <pre><code>override fun onActivityCreated(savedInstanceState: Bundle?) {
          super.onActivityCreated(savedInstanceState)
  
          if(myList.isEmpty()){
              showEmptyContainer()
          }else{
              adapter.setItems(myList)
          }
  
  }
  </code></pre>