Hi there, I am using `precompose` for navigation,...
# multiplatform
s
Hi there, I am using
precompose
for navigation, we have bottomBarNavigation in the screen, as shown below
Copy code
@Composable
fun Navigation(navigator: Navigator, viewModel: DashboardViewModel) {
    NavHost(navigator = navigator, initialRoute = NavigationItem.Dashboard.route) {

        scene(NavigationItem.Dashboard.route) {
            DashboardScreen({}, {})
        }

        scene(NavigationItem.Channel.route) {
            ChannelScreen()
        }

        scene(NavigationItem.Video.route) {
            VideoScreen()
        }

    }
}
When we tap between any tabs multiple times, clicked tabs getting added to stack, when we click hardware back button on android app, all tabs popbacks, Is there way to maintain only 1 instance of tab in stack?
k
Block any action coming in less than a second in that lambda
s
ho that is hacky way, there is option in compose itself
Copy code
NavOptions(launchSingleTop = true)
helped me