<androidx.fragment.app.FragmentContainerView> vs <fragment> as a view for a NavHost : <p>When using <code>androidx.fragment.app.FragmentContainerView</code> as a navHost instead of a regular <code>fragment</code> app is not able to navigate to a destination after orientation change.</p>

<p>I get a following error: 
<code>java.lang.IllegalStateException: no current navigation node</code></p>

<p>Is there a gotcha that I should know about to use it properly or is my way of using nav components is incorrect? </p>

<p>Simple activity xml with a view:</p>

<pre><code>
...
    &lt;androidx.fragment.app.FragmentContainerView
        android:id="@+id/nav_host_fragment"
        android:name="androidx.navigation.fragment.NavHostFragment"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:defaultNavHost="true"
        app:layout_behavior="@string/appbar_scrolling_view_behavior"
        app:navGraph="@navigation/nav_simple" /&gt;
...
</code></pre>

<p>Navigation code:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;navigation xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/nav_legislator.xml"
    app:startDestination="@id/initialFragment"&gt;

    &lt;fragment
        android:id="@+id/initialFragment"
        android:name="com.example.fragmenttag.InitialFragment"
        android:label="Initial Fragment"
        tools:layout="@layout/initial_fragment"&gt;
        &lt;action
            android:id="@+id/action_initialFragment_to_destinationFragment"
            app:destination="@id/destinationFragment" /&gt;
    &lt;/fragment&gt;
    &lt;fragment
        android:id="@+id/destinationFragment"
        android:name="com.example.fragmenttag.DestinationFragment"
        android:label="Destination Fragment"
        tools:layout="@layout/destination_fragment" /&gt;

&lt;/navigation&gt;
</code></pre>

<p>Here is a github repo where you can easily reproduce a bug: <a href="https://github.com/dmytroKarataiev/navHostBug" rel="noreferrer">https://github.com/dmytroKarataiev/navHostBug</a></p>
