feat: added launchSingleTop in navigate

pull/568/head
vishesh211 2 years ago
parent 487a288191
commit 079f92ea32

@ -37,7 +37,9 @@ internal class TopicArgs(val topicId: String) {
fun NavController.navigateToTopic(topicId: String) {
val encodedId = Uri.encode(topicId)
this.navigate("topic_route/$encodedId")
this.navigate("topic_route/$encodedId") {
launchSingleTop = true
}
}
fun NavGraphBuilder.topicScreen(

Loading…
Cancel
Save