From 7f5c812d470e083e01558598be793b01a1287b62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petrus=20Nguy=E1=BB=85n=20Th=C3=A1i=20H=E1=BB=8Dc?= Date: Sat, 23 Sep 2023 16:59:08 +0700 Subject: [PATCH] Update NavHost.kt remove unnecessary distinctUntilChanged --- .../kotlin/com/freeletics/khonshu/navigation/compose/NavHost.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/navigation-experimental/src/main/kotlin/com/freeletics/khonshu/navigation/compose/NavHost.kt b/navigation-experimental/src/main/kotlin/com/freeletics/khonshu/navigation/compose/NavHost.kt index fe236a527..ddd92b616 100644 --- a/navigation-experimental/src/main/kotlin/com/freeletics/khonshu/navigation/compose/NavHost.kt +++ b/navigation-experimental/src/main/kotlin/com/freeletics/khonshu/navigation/compose/NavHost.kt @@ -118,7 +118,6 @@ private fun SystemBackHandling(executor: MultiStackNavigationExecutor) { LaunchedEffect(executor, callback) { snapshotFlow { executor.canNavigateBack.value } - .distinctUntilChanged() .collect { callback.isEnabled = it } }