Skip to content

Commit

Permalink
Updated isInitialized setting in ComposeNavigatorByContentViewModel
Browse files Browse the repository at this point in the history
  • Loading branch information
chRyNaN committed Dec 30, 2021
1 parent eba2654 commit 0d4f699
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ class ComposeNavigatorByContentViewModel<T> internal constructor(
override fun ComposeNavigationContentScope<T>.content(key: T) {
if (contents.isEmpty()) {
addToStack(key = key, content = initialContent)

isInitialized = true
}

contents[key]?.invoke(this)

isInitialized = true
}

private fun addToStack(
Expand Down

0 comments on commit 0d4f699

Please sign in to comment.