Some questions on this timing/performance issue. I...
# compose
b
Some questions on this timing/performance issue. I'm testing on an old Android 7.1 device.
CustomNavHost
is an
AnimatedNavHost
with transitions set to
None
Copy code
CustomNavHost(navController = navController, startDestination = "home", builder = {
    composable("products") {
        Log.d(TAG, "Products")
    }
    composable("home") {
        Log.d(TAG, "Home")
        Button(onClick = {
            Log.d(TAG, "onClick")
            navController.navigate("products")
        }) {
            Text("GO TO PRODUCTS")
        }
    }
})
This is the log I'm getting on a release build:
Copy code
10-07 13:59:14.500 16279 16279 D MainActivity: onClick
10-07 13:59:14.564 16279 16279 D MainActivity: Home
10-07 13:59:14.598 16279 16279 D MainActivity: Products
10-07 13:59:14.722 16279 16279 D MainActivity: Products
10-07 13:59:14.922 16279 16279 D MainActivity: Products
10-07 13:59:14.990 16279 16279 D MainActivity: Products
Are the amount of recomposition and the timing ok? versions: compose: 1.0.3 accompanist: 0.17 navigation: 2.4.0-alpha09 (edit: formatting) (edit2: versions)
🧵 3