Hey, the Dropdown Menu inside my LazyVerticalGrid ...
# compose
a
Hey, the Dropdown Menu inside my LazyVerticalGrid items is causing recomposition every time I swipe my HorizontalPager. Removing the Dropdown Menu is causing no recomposition.
Copy code
DropdownMenu(
    expanded = showMenu,
    onDismissRequest = { showMenu = false }) {
    DropdownMenuItem(onClick = {

    }) {
        Text(text = "Share")
    }
}
This is inside my PostItem which is inside my LazyVerticalGrid. Unfortunately, this is causing a huge frame drop because all the AsyncImages contained in the PostItems are recomposed.
showMenu is a mutableStateOf
Copy code
var showMenu by remember { mutableStateOf(false) }