Hi, I use navigation-compose and compose.ui (version 1.6.0-beta02). I see some weird behaviour of La...
s
Hi, I use navigation-compose and compose.ui (version 1.6.0-beta02). I see some weird behaviour of LazyColumn when it's inside NavHost. This reproducible in release builds but not in debug. See code examples and video in the thread ๐Ÿงต
Copy code
setContent {
            val controller = rememberNavController()

            MyTheme {
                NavHost(
                    navController = controller,
                    startDestination = HOME_ROUTE,
                ) {
                    composable(HOME_ROUTE) {
                        LazyColumn {
                            items((0..1000).toList()) {
                                ListItem(
                                    modifier = Modifier.animateItemPlacement(),
                                    headlineContent = {
                                        Text(text = "Hello $it")
                                    }
                                )
                            }
                        }
                    }
                }
            }
        }
Here is code sample that causes the issue
Copy code
setContent {
            MyTheme {
                LazyColumn {
                    items((0..1000).toList()) {
                        ListItem(
                            modifier = Modifier.animateItemPlacement(),
                            headlineContent = {
                                Text(text = "Hello $it")
                            }
                        )
                    }
                }
            }
        }
And this one works well
screen-20231212-143454.mp4
just interesting is known bug or should I file a bug?
a
it is a known issue, will be fixed in the next beta
๐Ÿ‘ 1
s
thank you