Skip to content

Commit

Permalink
Update NavHost.kt
Browse files Browse the repository at this point in the history
remove unnecessary distinctUntilChanged
  • Loading branch information
hoc081098 authored Sep 23, 2023
1 parent 21daa9d commit 7f5c812
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ private fun SystemBackHandling(executor: MultiStackNavigationExecutor) {

LaunchedEffect(executor, callback) {
snapshotFlow { executor.canNavigateBack.value }
.distinctUntilChanged()
.collect { callback.isEnabled = it }
}

Expand Down

0 comments on commit 7f5c812

Please sign in to comment.