Skip to content

Commit

Permalink
Use replaceAll instead of replaceCurrent when navigating to home …
Browse files Browse the repository at this point in the history
…from placeholder
  • Loading branch information
msasikanth committed May 14, 2024
1 parent 4e78ebe commit 0c9baa2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import com.arkivanov.decompose.router.stack.active
import com.arkivanov.decompose.router.stack.childStack
import com.arkivanov.decompose.router.stack.pop
import com.arkivanov.decompose.router.stack.push
import com.arkivanov.decompose.router.stack.replaceCurrent
import com.arkivanov.decompose.router.stack.replaceAll
import com.arkivanov.decompose.value.Value
import com.arkivanov.essenty.instancekeeper.InstanceKeeper
import com.arkivanov.essenty.instancekeeper.getOrCreate
Expand Down Expand Up @@ -122,7 +122,7 @@ class AppPresenter(
// are finished and we can navigate to next screen
scope.launch {
withContext(dispatchersProvider.io) { rssRepository.numberOfFeeds().firstOrNull() }
navigation.replaceCurrent(Config.Home)
navigation.replaceAll(Config.Home)
}
}

Expand Down

0 comments on commit 0c9baa2

Please sign in to comment.