https://velog.io/@kej_ad/Android-Compsoe-Jetpack-Navigation-Nested-Graph와-Shared-ViewModel#viewmodel

https://dudgus907.tistory.com/91

https://developer.android.com/reference/androidx/navigation/NavBackStackEntry

https://amuru.tistory.com/257

사전지식

NavBackStackEntry

0_vpr5cVqczBbv6sW9.png

public class NavBackStackEntry
private constructor(
    private val context: Context?,
    /**
     * The destination associated with this entry
     *
     * @return The destination that is currently visible to users
     */
    @set:RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) public var destination: NavDestination,
    private val immutableArgs: Bundle? = null,
    private var hostLifecycleState: Lifecycle.State = Lifecycle.State.CREATED,
    private val viewModelStoreProvider: NavViewModelStoreProvider? = null,
    /**
     * The unique ID that serves as the identity of this entry
     *
     * @return the unique ID of this entry
     */
    public val id: String = UUID.randomUUID().toString(),
    private val savedState: Bundle? = null
) :
    LifecycleOwner,
    ViewModelStoreOwner,
    HasDefaultViewModelProviderFactory,
    SavedStateRegistryOwner

ViewModelStoreOwner